@Test
void minimumOverRemaining() {

    final SessionInfo sessionInfo = mockSessionInfo();
    final Money minimumInvestment = sessionInfo.getMinimumInvestmentAmount();
    final Loan l = mockLoan(minimumInvestment.getValue()
        .intValue() - 1);
    final ParsedStrategy s = mock(ParsedStrategy.class);
    when(s.getMinimumInvestmentSize(eq(l.getRating()))).thenReturn(minimumInvestment);
    when(s.getMaximumInvestmentSize(eq(l.getRating()))).thenReturn(minimumInvestment.add(minimumInvestment));
    when(s.getMaximumInvestmentShareInPercent()).thenReturn(100);
    final InvestmentSizeRecommender r = new InvestmentSizeRecommender(s);
    assertThat(r.apply(l, sessionInfo)).isEqualTo(Money.ZERO);
}