@Test
void comparator() {

    Comparator<Rating> comparator = Util.getRatingByDemandComparator(inOrder(Rating.A, Rating.D, Rating.AAAAA));
    assertSoftly(softly -> softly.assertThat(Rating.D)
        .usingComparator(comparator)
        .isGreaterThan(Rating.A)
        .isLessThan(Rating.AAAAA)
        .isLessThan(Rating.AAAAAA) // Not included == greatest.
        .isLessThan(Rating.C));
}