@Test
public void givenEmployeeWithError_whenGetEmployees_employeeWithErrorIsReturned() {

    Employee first = new EmployeeTestBuilder().build();
    MonthlyTaxForEmployee monthlyTax = new MonthlyTaxForEmployeeTestBuilder()
            .withEmployee(first)
            .withLastErrorMessage("BOOM!!!")
            .build();
    entityManager.persist(first);
    entityManager.persist(monthlyTax);
    entityManager.flush();
    EmployeeTo employeeTo = presentationEmployeeRepository.getEmployees(0, 1).get(0);
    assertThat(employeeTo.getErrorCount()).isEqualTo(1L);
}