assertEquals("UnsecureRunAsServletWithPrincipalNameAndRolesPrincipal", s19RunAsID.getPrincipalName());
Set<String> s19RunAsPrincipalRoles = jbossWeb.getSecurityRoles().getSecurityRoleNamesByPrincipal("UnsecureRunAsServletWithPrincipalNameAndRolesPrincipal");
assertEquals(set("ExtraRole1"), s19RunAsPrincipalRoles);
assertEquals(set("ExtraRole1", "InternalUser"), s19RunAsID.getRunAsRoles());
assertEquals(true, s19RunAsID.doesUserHaveRole("ExtraRole1"));
assertEquals(true, s19RunAsID.doesUserHaveRole("InternalUser"));
// servlet20
JBossServletMetaData servlet20 = jbossWeb.getServletByName("UnsecureRunAsJsp");
assertNotNull(servlet20);
assertEquals("servlet20", servlet20.getId());
assertEquals("UnsecureRunAsJsp", servlet20.getServletName());