credentials.setPassword("123457");
authenticator.setEntityManager(em);
authenticator.setCredentials(credentials);
authenticator.setIdentity(identity);
try {
authenticator.authenticate();
} catch (Exception e) {
Assert.assertEquals(e.getMessage(), "Usuario ou senha invalidos");
}
}