@Test
public void testCompareTo() {

    TsMoniker p1 = TsMoniker.createProvidedMoniker("A", "123");
    TsMoniker p2 = TsMoniker.createProvidedMoniker("B", "123");
    TsMoniker p3 = TsMoniker.createProvidedMoniker("C", "123");
    assertThat(p1).isEqualByComparingTo(TsMoniker.createProvidedMoniker("A", "123"));
    assertThat(p2).isGreaterThan(p1);
    assertThat(p3).isGreaterThan(p2);
    assertThat(p3).isGreaterThan(p1);
    TsMoniker a1 = TsMoniker.createAnonymousMoniker();
    TsMoniker a2 = TsMoniker.createAnonymousMoniker();
    assertThat(a1).isEqualByComparingTo(a1);
    assertThat(a1.compareTo(a2)).isEqualTo(a2.compareTo(a1) * -1);
}