@Test
public void testGetTemporaryName() {

    LdapName expectedOriginalName = LdapUtils.newLdapName(
            "cn=john doe, ou=somecompany, c=SE");
    DefaultTempEntryRenamingStrategy tested = new DefaultTempEntryRenamingStrategy();
    Name result = tested.getTemporaryName(expectedOriginalName);
    assertThat(result.toString()).isEqualTo("cn=john doe_temp,ou=somecompany,c=SE");
    assertThat(result).isNotSameAs(expectedOriginalName);
}