@Test
public void compareToWorksAsExpected() {

    final ImmutableAuthorizationContextType authCtxTypeAbc = ImmutableAuthorizationContextType.of("abc");
    final ImmutableAuthorizationContextType authCtxTypeDef = ImmutableAuthorizationContextType.of("def");
    try (final AutoCloseableSoftAssertions softly = new AutoCloseableSoftAssertions()) {
        softly.assertThat(authCtxTypeAbc.compareTo(authCtxTypeAbc))
                .as("compare with equal")
                .isZero();
        softly.assertThat(authCtxTypeAbc.compareTo(authCtxTypeDef))
                .as("compare with greater")
                .isNegative();
        softly.assertThat(authCtxTypeDef.compareTo(authCtxTypeAbc))
                .as("compare with less")
                .isPositive();
    }
}