@Test
void fromLoanWithoutRevenueRate() {

    final LoanImpl loan = new MockLoanBuilder()
        .set(LoanImpl::setRating, Rating.D)
        .set(LoanImpl::setRevenueRate, null)
        .build();
    final Wrapper<LoanDescriptor> w = Wrapper.wrap(new LoanDescriptor(loan), FOLIO);
    when(FOLIO.getInvested()).thenReturn(Money.ZERO);
    assertThat(w.getRevenueRate()).isEqualTo(Ratio.fromPercentage("14.99"));
}