public void testGetEmployees() { System.out.println("getEmployees"); // Testcase, create a activity and place to workers in it this.list.addEmployee(this.activity1, this.worker1); this.list.addEmployee(this.activity1, this.worker2); // Expected list with to workers ArrayList<Employee> listExp = new ArrayList(); listExp.add(this.worker1); listExp.add(this.worker2); // The two lists should equals assertEquals(listExp, this.list.getEmployees(this.activity1)); // no workers for activity2 assertEquals(null, this.list.getEmployees(this.activity2)); }