assertEquals("bar", response.getData());
}
/** Test authenticate() ConnectorNotFoundException. */
public void testAuthenticateConnectorNotFoundException() throws Exception {
instantiator.addConnector(connectorName, new MockConnector(null,
new AuthenticatingAuthenticationManager(), null, null, null));
AuthenticationResponse response =
manager.authenticate("nonexistent", identity);
assertNotNull(response);
assertFalse(response.isValid());