}
public void testPermit_Permit_Permit() throws Exception
{
JBossSecurityContext sc = new JBossSecurityContext("Permit-Permit-Permit");
sc.setIncomingRunAs(new RunAsIdentity("theduke", "jduke"));
assertNotNull("SecurityContext is not null", sc);
IdentityTrustManager itm = sc.getIdentityTrustManager();
assertNotNull("IdentityTrustManager is not null", itm);
assertEquals("Is Trusted", TrustDecision.Permit, itm.isTrusted(sc));
}