@Test
public void testAuthenticateWhenNoUserWasFoundShouldFail() throws Exception {

	when(contextSourceMock.getReadOnlyContext()).thenReturn(dirContextMock);
	noSearchResults(searchControlsRecursive());
	boolean result = tested.authenticate(nameMock, "(ou=somevalue)", "password", entryContextCallbackMock);
       verify(dirContextMock).close();
       assertThat(result).isFalse();
}