@Test
void investmentPurchased() {

    final Loan loan = MockLoanBuilder.fresh();
    final Participation participation = new ParticipationImpl(loan, Money.from(200), loan.getTermInMonths() - 1);
    final InvestmentPurchasedEvent e = EventFactory.investmentPurchased(participation, loan, Money.from(200),
            mockPortfolioOverview());
    assertSoftly(softly -> {
        softly.assertThat(e.getLoan())
            .isNotNull();
        softly.assertThat(e.getPurchasedAmount())
            .isEqualTo(Money.from(200));
        softly.assertThat(e.getPortfolioOverview())
            .isNotNull();
        softly.assertThat(e.getParticipation())
            .isNotNull();
    });
}