@Test
public void given30Employees_whenGetEmployeesForFirstPage_thenFirst10EmployeesAreReturned() throws Exception {

    haveEmployees(30);
    List<Employee> first10 = employeeRepository.getEmployees(0, 10);
    assertThat(first10).hasSize(10);
    assertThat(first10.get(0).getEmail()).isEqualTo("john.smith0@gmail.com");
}