@Test
public void shouldUseWeeklyCalculator() {

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