@Test
public void testExecuteReadOnly() throws Exception {

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