@Test
public void testGetTemporaryName() {

    LdapName originalName = LdapUtils.newLdapName(
            "cn=john doe, ou=somecompany, c=SE");
    DifferentSubtreeTempEntryRenamingStrategy tested = new DifferentSubtreeTempEntryRenamingStrategy(
            LdapUtils.newLdapName("ou=tempEntries"));
    int nextSequenceNo = tested.getNextSequenceNo();
    // Perform test
    Name result = tested.getTemporaryName(originalName);
    // Verify result
    assertThat(result.toString()).isEqualTo("cn=john doe" + nextSequenceNo + ",ou=tempEntries");
}