@Test
public void testSearch_String_ContextMapper_Default() throws Exception {

	expectGetReadOnlyContext();
	SearchControls controls = searchControlsRecursive();
	Object expectedObject = new Object();
	SearchResult searchResult = new SearchResult("", expectedObject, new BasicAttributes());
	singleSearchResultWithStringBase(controls, searchResult);
	Object expectedResult = expectedObject;
	when(contextMapperMock.mapFromContext(expectedObject)).thenReturn(expectedResult);
	List list = tested.search(DEFAULT_BASE_STRING, "(ou=somevalue)", contextMapperMock);
       verify(namingEnumerationMock).close();
       verify(dirContextMock).close();
       assertThat(list).isNotNull();
	assertThat(list).hasSize(1);
	assertThat(list.get(0)).isSameAs(expectedResult);
}