@Test
public void testExecuteReadWrite() throws Exception {

	expectGetReadWriteContext();
	Object object = new Object();
	when(contextExecutorMock.executeWithContext(dirContextMock)).thenReturn(object);
	Object result = tested.executeReadWrite(contextExecutorMock);
       verify(dirContextMock).close();
       assertThat(result).isSameAs(object);
}