@Test
public void testDoSearch_DirContextProcessor_NamingException() throws Exception {

	expectGetReadOnlyContext();
	javax.naming.LimitExceededException ne = new javax.naming.LimitExceededException();
	when(searchExecutorMock.executeSearch(dirContextMock)).thenThrow(ne);
	try {
		tested.search(searchExecutorMock, handlerMock, dirContextProcessorMock);
		fail("LimitExceededException expected");
	}
	catch (LimitExceededException expected) {
		assertThat(true).isTrue();
	}
       verify(dirContextProcessorMock).preProcess(dirContextMock);
       verify(dirContextProcessorMock).postProcess(dirContextMock);
       verify(dirContextMock).close();
}