@Test
public void testAuthenticationWithAuthenticableAndCorrectContext() throws Exception {
UserCredentialsTransportAuthenticationProvider authenticationHandler = new UserCredentialsTransportAuthenticationProvider(
"foo", "bar");
Executor authenticable = Executor.newInstance();
TransportAuthenticationContext context = new TransportAuthenticationContext();
context.addAttribute("endpoint", new ReplicationEndpoint("http://www.apache.org"));
authenticationHandler.authenticate(authenticable, context);
}