@Test(expected=UnsupportedCredentialsException.class)
public void testNoResolverFound() throws Exception {
AuthenticationManagerImpl manager = new AuthenticationManagerImpl();
HttpBasedServiceCredentialsAuthenticationHandler authenticationHandler = new HttpBasedServiceCredentialsAuthenticationHandler();
authenticationHandler.setHttpClient(new HttpClient());
manager.setAuthenticationHandlers(Arrays.asList((AuthenticationHandler) authenticationHandler));
manager.setCredentialsToPrincipalResolvers(Arrays.asList((CredentialsToPrincipalResolver) new UsernamePasswordCredentialsToPrincipalResolver()));
manager.authenticate(TestUtils.getHttpBasedServiceCredentials());
}