@Test
void loanDefaulted() {

    final LoanDefaultedEvent e = EventFactory.loanDefaulted(MockInvestmentBuilder.fresh()
        .build(), MockLoanBuilder.fresh(), LocalDate.now());
    assertSoftly(softly -> {
        softly.assertThat(e.getLoan())
            .isNotNull();
        softly.assertThat(e.getInvestment())
            .isNotNull();
        softly.assertThat(e.getDelinquentSince())
            .isNotNull();
    });
}