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