@Test
public void testSearch_CallbackHandler() throws Exception {

	expectGetReadOnlyContext();
	SearchResult searchResult = new SearchResult("", new Object(), new BasicAttributes());
	singleSearchResult(searchControlsOneLevel(), searchResult);
	tested.search(nameMock, "(ou=somevalue)", 1, true, handlerMock);
       verify(handlerMock).handleNameClassPair(searchResult);
       verify(dirContextMock).close();
}