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