ModifyAttributesOperationExecutor implements
        CompensatingTransactionOperationExecutor { public void commit() { log.debug("Nothing to do in commit for modifyAttributes"); } ModifyAttributesOperationExecutor(LdapOperations ldapOperations,
            Name dn, ModificationItem[] actualModifications,
            ModificationItem[] compensatingModifications); void rollback(); void commit(); void performOperation();  }
@Test public void testCommit() { ModificationItem[] expectedCompensatingItems = new ModificationItem[0]; ModificationItem[] expectedActualItems = new ModificationItem[0]; Name expectedDn = LdapUtils.newLdapName("cn=john doe"); ModifyAttributesOperationExecutor tested = new ModifyAttributesOperationExecutor(ldapOperationsMock, expectedDn, expectedActualItems, expectedCompensatingItems); verifyNoMoreInteractions(ldapOperationsMock); tested.commit(); }