Business { public EmployeeBean getEmployee(String lastAndFirstName) { return employees.get(lastAndFirstName); } Business(); void addEmployee(EmployeeBean anEmployee); EmployeeBean getEmployee(String lastAndFirstName); String getCustomerPhoneNumber(String lastAndFirstName); String getAllCustomerPhoneNumbers(); void addCustomerToPhoneBook(CustomerBean aCustomer);  }
@Test public void testGetEmployee() { testBusiness.employees.put("Jones, Bob", bob); testBusiness.employees.put("Gomez, Jose", jose); testBusiness.employees.put("Anderson, Sven", sven); testBusiness.employees.put("Anderson, Ingabrit", ingabrit); EmployeeBean bobFromMap = testBusiness.getEmployee("Jones, Bob"); assertEquals(bob, bobFromMap); EmployeeBean joseFromMap = testBusiness.getEmployee("Gomez, Jose"); assertEquals(jose, joseFromMap); EmployeeBean svenFromMap = testBusiness.getEmployee("Anderson, Sven"); assertEquals(sven, svenFromMap); EmployeeBean ingabritFromMap = testBusiness.getEmployee("Anderson, Ingabrit"); assertEquals(ingabrit, ingabritFromMap); EmployeeBean notEmployee = testBusiness.getEmployee("Body, No"); assertNull(notEmployee); testBusiness.employees.clear(); }