@Test
public void testGetEmployeeTaxes() throws Exception {

    long employeeId = 12L;
    int year = 2012;
    int month = 2;
    Money tax = Money.of(CurrencyUnit.EUR, 10);
    Employee employee = new Employee();
    MonthlyTaxForEmployee taxCalculation = MonthlyTaxForEmployee.from(employee, year, month, tax, (String)null);
    when(employeeServiceMock.getEmployee(employeeId)).thenReturn(employee);
    when(employeeServiceMock.getEmployeeTaxes(employeeId)).thenReturn(asList(taxCalculation));
    List<EmployeeTaxTo> employeeTaxes = employeeRestController.getEmployeeTaxes(employeeId);
    assertThat(employeeTaxes).hasSize(1);
    assertThat(employeeTaxes.get(0).getStatus()).isEqualTo("IN PROGRESS");
    assertThat(employeeTaxes.get(0).getYear()).isEqualTo(year);
    assertThat(employeeTaxes.get(0).getMonth()).isEqualTo(month);
    assertThat(employeeTaxes.get(0).getTax()).isEqualTo(tax);
    verify(employeeServiceMock).getEmployee(employeeId);
    verify(employeeServiceMock).getEmployeeTaxes(employeeId);
    verify(monthlyTaxForEmployeeRepository).find(employee, year, month);
}