@Test
public void testGetRecordingOperation_Rebind() throws Exception {

    CompensatingTransactionOperationRecorder result = tested
            .createRecordingOperation(dirContextMock, "rebind");
    assertThat(result instanceof RebindOperationRecorder).isTrue();
    RebindOperationRecorder rebindOperationRecorder = (RebindOperationRecorder) result;
    assertThat(rebindOperationRecorder.getLdapOperations()).isSameAs(ldapOperationsMock);
    assertThat(rebindOperationRecorder.getRenamingStrategy()).isSameAs(renamingStrategyMock);
}