@Test
void equals() {

    final Investment i = mockInvestment(BigDecimal.TEN);
    final InvestmentDescriptor id = new InvestmentDescriptor(i, () -> LOAN);
    assertSoftly(softly -> {
        softly.assertThat(id)
            .isNotEqualTo(null);
        softly.assertThat(id)
            .isNotEqualTo(UUID.randomUUID()
                .toString());
        softly.assertThat(id)
            .isEqualTo(id);
    });
    final InvestmentDescriptor id2 = new InvestmentDescriptor(i, () -> LOAN);
    assertSoftly(softly -> {
        softly.assertThat(id)
            .isEqualTo(id2);
        softly.assertThat(id2)
            .isEqualTo(id);
    });
    final InvestmentDescriptor id3 = new InvestmentDescriptor(mockInvestment(BigDecimal.ONE), () -> LOAN);
    assertThat(id).isNotEqualTo(id3);
}