getSecurityManager().saveAuthenticationProvider(config);
GeoServerAuthenticationProvider provider = getSecurityManager().loadAuthenticationProvider("jdbc1");
UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken("sa","");
token.setDetails("details");
assertTrue(provider.supports(token.getClass()));
assertTrue(!provider.supports(RememberMeAuthenticationToken.class));
Authentication auth = provider.authenticate(token);
assertNotNull(auth);
assertEquals("sa", auth.getPrincipal());