UnbindOperationExecutor implements
        CompensatingTransactionOperationExecutor { public void performOperation() { log.debug("Performing operation for unbind -" + " renaming to temporary entry."); ldapOperations.rename(originalDn, temporaryDn); } UnbindOperationExecutor(LdapOperations ldapOperations,
            Name originalDn, Name temporaryDn); void rollback(); void commit(); void performOperation();  }
@Test public void testPerformOperation() { LdapName expectedOldName = LdapUtils.newLdapName("cn=oldDn"); LdapName expectedTempName = LdapUtils.newLdapName("cn=newDn"); UnbindOperationExecutor tested = new UnbindOperationExecutor( ldapOperationsMock, expectedOldName, expectedTempName); tested.performOperation(); verify(ldapOperationsMock).rename(expectedOldName, expectedTempName); }