@Test
void equals() {

    final Participation p = mockParticipation();
    final ParticipationDescriptor d = new ParticipationDescriptor(p, () -> LOAN);
    final RecommendedParticipation r = new RecommendedParticipation(d);
    assertSoftly(softly -> {
        softly.assertThat(r)
            .isNotEqualTo(null);
        softly.assertThat(r)
            .isNotEqualTo(UUID.randomUUID()
                .toString());
        softly.assertThat(r)
            .isEqualTo(r);
    });
    final RecommendedParticipation r2 = new RecommendedParticipation(d);
    assertSoftly(softly -> {
        softly.assertThat(r)
            .isEqualTo(r2);
        softly.assertThat(r2)
            .isEqualTo(r);
    });
    final RecommendedParticipation r3 = new RecommendedParticipation(
            new ParticipationDescriptor(mockParticipation(), () -> LOAN));
    assertThat(r).isNotEqualTo(r3);
}