RenameOperationExecutor implements
        CompensatingTransactionOperationExecutor { public void commit() { log.debug("Nothing to do in commit for rename operation"); } RenameOperationExecutor(LdapOperations ldapOperations,
            Name originalDn, Name newDn); void rollback(); void commit(); void performOperation();  }
@Test public void testCommit() { LdapName expectedNewName = LdapUtils.newLdapName("ou=newOu"); LdapName expectedOldName = LdapUtils.newLdapName("ou=someou"); RenameOperationExecutor tested = new RenameOperationExecutor( ldapOperationsMock, expectedOldName, expectedNewName); verifyNoMoreInteractions(ldapOperationsMock); tested.commit(); }