EasyMock.expect(userPasswordDao.getPasswordHash("student")).andReturn("(SHA256)KwAQC001SoQq/CjHMLSz2o0aAqx7WrKeRFgWOeM2GEyLXGZd+1/XkA==");
final PersonDirAuthenticationHandler authenticationHandler = new PersonDirAuthenticationHandler();
authenticationHandler.setUserPasswordDao(userPasswordDao);
final UsernamePasswordCredentials credentials = new UsernamePasswordCredentials();
credentials.setUsername("student");
credentials.setPassword("wombat");
EasyMock.replay(userPasswordDao);
final boolean auth = authenticationHandler.authenticateUsernamePasswordInternal(credentials);