@Test
public void testGetRecordingOperation_Rename() throws Exception {

    CompensatingTransactionOperationRecorder result = tested
            .createRecordingOperation(dirContextMock, "rename");
    assertThat(result instanceof RenameOperationRecorder).isTrue();
    RenameOperationRecorder recordingOperation = (RenameOperationRecorder) result;
    assertThat(recordingOperation.getLdapOperations()).isSameAs(ldapOperationsMock);
}