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