handler.setAuthenticationManager(new net.sourceforge.pebble.mock.MockAuthenticationManager(true, new GrantedAuthority[] {new GrantedAuthorityImpl(Constants.BLOG_CONTRIBUTOR_ROLE)}));
blog.setProperty(Blog.BLOG_CONTRIBUTORS_KEY, "username");
}
public void testAuthenticationFailure() {
handler.setAuthenticationManager(new MockAuthenticationManager(false));
try {
handler.getUserInfo("", "username", "password");
fail();
} catch (XmlRpcAuthenticationException xmlrpcae) {
} catch (XmlRpcException xmlrpce) {