@Test
void equals() {

    final Participation p = mockParticipation(BigDecimal.TEN);
    final ParticipationDescriptor pd = new ParticipationDescriptor(p, () -> LOAN);
    assertSoftly(softly -> {
        softly.assertThat(pd)
            .isNotEqualTo(null);
        softly.assertThat(pd)
            .isNotEqualTo(UUID.randomUUID()
                .toString());
        softly.assertThat(pd)
            .isEqualTo(pd);
    });
    final ParticipationDescriptor pd2 = new ParticipationDescriptor(p, () -> LOAN);
    assertSoftly(softly -> {
        softly.assertThat(pd)
            .isEqualTo(pd2);
        softly.assertThat(pd2)
            .isEqualTo(pd);
    });
    final ParticipationDescriptor pd3 = new ParticipationDescriptor(mockParticipation(BigDecimal.ONE), () -> LOAN);
    assertSoftly(softly -> {
        softly.assertThat(pd)
            .isNotEqualTo(pd3);
    });
}