Business { public void addEmployee(EmployeeBean anEmployee) { if (anEmployee != null && anEmployee.getLastName() != null && anEmployee.getFirstName() != null) { String key = anEmployee.getLastName() + ", " + anEmployee.getFirstName(); employees.put(key, anEmployee); } } Business(); void addEmployee(EmployeeBean anEmployee); EmployeeBean getEmployee(String lastAndFirstName); String getCustomerPhoneNumber(String lastAndFirstName); String getAllCustomerPhoneNumbers(); void addCustomerToPhoneBook(CustomerBean aCustomer);  }
@Test public void testAddEmployee() { testBusiness.addEmployee(bob); int numEmployees = testBusiness.employees.size(); assertEquals(1, numEmployees); testBusiness.addEmployee(jose); testBusiness.addEmployee(sven); testBusiness.addEmployee(ingabrit); numEmployees = testBusiness.employees.size(); assertEquals(4, numEmployees); testBusiness.addEmployee(null); numEmployees = testBusiness.employees.size(); assertEquals(4, numEmployees); testBusiness.addEmployee(noLastName); numEmployees = testBusiness.employees.size(); assertEquals(4, numEmployees); testBusiness.addEmployee(noFirstName); numEmployees = testBusiness.employees.size(); assertEquals(4, numEmployees); testBusiness.employees.clear(); }