@Test
public void testCommit() {

    LdapName expectedOldName = LdapUtils.newLdapName("cn=oldDn");
    LdapName expectedTempName = LdapUtils.newLdapName("cn=newDn");
    UnbindOperationExecutor tested = new UnbindOperationExecutor(
            ldapOperationsMock, expectedOldName, expectedTempName);
    // Perform test
    tested.commit();
    verify(ldapOperationsMock).unbind(expectedTempName);
}