@Test
public void testGetReadWriteContext_LdapContext() {

    when(contextSourceMock.getReadWriteContext()).thenReturn(ldapContextMock);
    DirContext result = tested.getReadWriteContext();
    assertThat(result).isNotNull();
    assertThat(result instanceof LdapContext).isTrue();
    assertThat(result instanceof DirContextProxy).isTrue();
}