@Test
public void testCompareTo_EqualsComplex() throws Exception {

    LdapRdn rdn1 = new LdapRdn("cn=john doe+sn=doe");
    LdapRdn rdn2 = new LdapRdn("cn=john doe+sn=doe");
    int result = rdn1.compareTo(rdn2);
    assertThat(result).isEqualTo(0);
}