public final void testAuthenticate() throws RepositoryLoginException,
RepositoryException, LoginException {
MockRepositoryEventList mrel =
new MockRepositoryEventList("MockRepositoryEventLog2.txt");
MockRepository r = new MockRepository(mrel);
MockJcrRepository repo = new MockJcrRepository(r);
Credentials creds = new SimpleCredentials("admin", "admin".toCharArray());
Session session = repo.login(creds);
AuthenticationManager authenticationManager =
new JcrAuthenticationManager(session);
Assert.assertFalse(authenticationManager.authenticate(
new SimpleAuthenticationIdentity("jimbo","jimbo")).isValid());