@Test
public void testGetReadWriteContext_DirContext() {

    when(contextSourceMock.getReadWriteContext()).thenReturn(dirContextMock);
    DirContext result = tested.getReadWriteContext();
    assertThat(result).as("Result should not be null").isNotNull();
    assertThat(result instanceof DirContext).isTrue();
    assertThat(result instanceof LdapContext).isFalse();
    assertThat(result instanceof DirContextProxy).isTrue();
}