User user = mock(User.class);
when(user.getName()).thenReturn("bob");
when(m_userAdmin.getUser(eq(lookupKey), eq("CN=Bob,OU=dev,DC=acme,DC=corp"))).thenReturn(user);
User result = processor.authenticate(m_userAdmin, m_servletRequest);
assert result != null : "Expected a valid user to be returned!";
assert "bob".equals(user.getName()) : "Expected bob to be returned as user!";
}