@Test
public void testRemoveFirst() throws InvalidNameException {

    LdapName ldapName = new LdapName(EXPECTED_DN_STRING);
    LdapName result = LdapUtils.removeFirst(ldapName, new LdapName("OU=I,OU=M"));
    assertThat(result).isNotSameAs(ldapName);
    assertThat(result).isEqualTo(new LdapName("cn=john.doe, OU=Users,OU=SE,OU=G"));
}