@Test
public void shouldUseMonthlyCalculator() {

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