@Test
public void testGetRecordingOperation_Bind() throws Exception {

    CompensatingTransactionOperationRecorder result = tested
            .createRecordingOperation(dirContextMock, "bind");
    assertThat(result instanceof BindOperationRecorder).isTrue();
    BindOperationRecorder bindOperationRecorder = (BindOperationRecorder) result;
    assertThat(bindOperationRecorder.getLdapOperations()).isSameAs(ldapOperationsMock);
}