@Test
public void shouldUseDailyCalculator() {

    // exercise test
    LoanDurationInAccountingYearsCalculator loanDurationCalculator = loanDurationCalculatorFactory.create(RecurrenceType.DAILY);
    // verification
    assertThat(loanDurationCalculator, is(instanceOf(LoanDurationInAccountingYearsCalculatorFactoryForDailyRecurrence.class)));
}