@Test
public void givenGraceOnAllRepaymentsShouldReturnPrincipalAndInterestDueForEachInstallment() {

    LoanInterestCalculationDetails loanInterestCalculationDetails = new LoanInterestCalculationDetailsBuilder().withLoanAmount("100.0")
                                                                                                                .withGraceType(GraceType.GRACEONALLREPAYMENTS)
                                                                                                                .withGraceDurationOf(0)
                                                                                                                .withNumberOfInstallments(1)
                                                                                                                .withInterestFractionalRatePerInstallmentOf("0.16")
                                                                                                                .build();
    // exercise test
    List<InstallmentPrincipalAndInterest> equalInstallments = principalWithInterestGenerator.generateEqualInstallments(loanInterestCalculationDetails);
    // verification
    assertThat(equalInstallments.get(0).getPrincipal(), is(TestMoneyUtil.createMoney("100")));
    assertThat(equalInstallments.get(0).getInterest(), is(loanInterest));
}