BindOperationExecutor implements
        CompensatingTransactionOperationExecutor { public void commit() { log.debug("Nothing to do in commit for bind operation"); } BindOperationExecutor(LdapOperations ldapOperations, Name dn,
            Object originalObject, Attributes originalAttributes); void rollback(); void commit(); void performOperation();  }
@Test public void testCommit() { LdapName expectedDn = LdapUtils.newLdapName("cn=john doe"); Object expectedObject = new Object(); BasicAttributes expectedAttributes = new BasicAttributes(); BindOperationExecutor tested = new BindOperationExecutor( ldapOperationsMock, expectedDn, expectedObject, expectedAttributes); verifyNoMoreInteractions(ldapOperationsMock); tested.commit(); }