*/
public void testCustomAuthorizer() throws Exception
{
Properties props = TestEngine.getTestProperties();
props.put( AuthorizationManager.PROP_AUTHORIZER, "org.apache.wiki.auth.AuthenticationManagerTest$DummyAuthorizer" );
m_engine = new TestEngine( props );
// Start a session without any container roles: DummyAuthorizer should ALWAYS allow AuthorizerRole
WikiSession session = WikiSessionTest.authenticatedSession( m_engine, Users.JANNE, Users.JANNE_PASS );
assertTrue( session.hasPrincipal( Role.ALL ) );
assertTrue( session.hasPrincipal( Role.AUTHENTICATED ) );