@Test
public void shouldCalculateFlatLoanInterest() {

    // setup
    LoanInterestCalculationDetails loanInterestCalculationDetails = new LoanInterestCalculationDetailsBuilder().withLoanAmount("100.0")
                                                                                                               .withInterestRate("10.0")
                                                                                                               .withDurationInYears("1.0")
                                                                                                               .build();
    // exercise test
    Money calculatedInterest = flatLoanInterestCalculator.calculate(loanInterestCalculationDetails);
    // verification
    assertThat(calculatedInterest, is(TestMoneyUtil.createMoney("10.0")));
}