@Test
void loanNowDelinquent() {

    Loan loan = new MockLoanBuilder()
        .set(LoanImpl::setRating, Rating.AAAAA)
        .build();
    final LoanNowDelinquentEvent e = EventFactory.loanNowDelinquent(MockInvestmentBuilder
        .fresh(loan, new LoanHealthStatsImpl(LoanHealth.CURRENTLY_IN_DUE), 200)
        .build(), loan);
    assertSoftly(softly -> {
        softly.assertThat(e.getLoan())
            .isNotNull();
        softly.assertThat(e.getInvestment())
            .isNotNull();
        softly.assertThat(e.getDelinquentSince())
            .isNotNull();
        softly.assertThat(e.getThresholdInDays())
            .isEqualTo(0);
    });
}