@Test public void testGetEmployee() throws Exception { employeeService.getEmployee(EMPLOYEE_ID); verify(employeeRepositoryMock).getBy(EMPLOYEE_ID); verifyNoMoreInteractions(employeeRepositoryMock); }
public Employee getEmployee(Long employeeId) { return employeeRepository.getBy(employeeId); }
EmployeeService { public Employee getEmployee(Long employeeId) { return employeeRepository.getBy(employeeId); } }
EmployeeService { public Employee getEmployee(Long employeeId) { return employeeRepository.getBy(employeeId); }  }
EmployeeService { public Employee getEmployee(Long employeeId) { return employeeRepository.getBy(employeeId); }  List<Employee> getEmployees(int page, int pageSize); Employee getEmployee(Long employeeId); Money getTotalAmountOfPaidTaxes(Employee employee); List<MonthlyTaxForEmployee> getEmployeeTaxes(Long employeeId); Long getEmployeeCount(); }
EmployeeService { public Employee getEmployee(Long employeeId) { return employeeRepository.getBy(employeeId); }  List<Employee> getEmployees(int page, int pageSize); Employee getEmployee(Long employeeId); Money getTotalAmountOfPaidTaxes(Employee employee); List<MonthlyTaxForEmployee> getEmployeeTaxes(Long employeeId); Long getEmployeeCount();  }