assertEquals("queue/mdbtest", resenv2.getJndiName());
assertEquals("queue/mdbtest", resenv2.getMappedName());
SecurityRolesMetaData secRoles = jbossWeb.getSecurityRoles();
assertEquals(6, secRoles.size());
SecurityRoleMetaData role1 = secRoles.get("AuthorizedUser");
assertNotNull(role1);
assertEquals("security-role1", role1.getId());
assertEquals("AuthorizedUser", role1.getRoleName());
assertEquals("An AuthorizedUser is one with a valid username and password", getDescription(role1.getDescriptions()));
assertEquals(null, role1.getPrincipals());
SecurityRoleMetaData role2 = secRoles.get("ServletUserRole");
assertEquals("security-role2", role2.getId());
assertEquals("ServletUserRole", role2.getRoleName());
assertEquals("A role used by the UserInRoleServlet", getDescription(role2.getDescriptions()));
assertEquals(null, role2.getPrincipals());
SecurityRoleMetaData role3 = secRoles.get("InternalUser");
assertEquals("security-role3", role3.getId());
assertEquals("InternalUser", role3.getRoleName());
assertEquals("InternalUser is private app role", getDescription(role3.getDescriptions()));
assertEquals(null, role3.getPrincipals());
SecurityRoleMetaData role4 = secRoles.get("ExtraRole1");
assertEquals("security-role4", role4.getId());
assertEquals("ExtraRole1", role4.getRoleName());
assertEquals("ExtraRole1 is an extra role added to a run-as principal", getDescription(role4.getDescriptions()));
assertEquals(set("UnsecureRunAsServletWithPrincipalNameAndRolesPrincipal"), role4.getPrincipals());
SecurityRoleMetaData role5 = secRoles.get("ExtraRole2");
assertEquals("security-role5", role5.getId());
assertEquals("ExtraRole2", role5.getRoleName());
assertEquals("ExtraRole2 is an extra role added to a run-as principal", getDescription(role5.getDescriptions()));
assertEquals(set("ExtraRole2Principal1", "ExtraRole2Principal2"), role5.getPrincipals());
SecurityRoleMetaData role6 = secRoles.get("NonExistentRole");
assertEquals("security-role6", role6.getId());
assertEquals("NonExistentRole", role6.getRoleName());
assertEquals("Role that does not exist", getDescription(role6.getDescriptions()));
assertEquals(null, role6.getPrincipals());
assertEquals(7, jbossWeb.getEnvironmentEntries().size());
EnvironmentEntryMetaData env1 = jbossWeb.getEnvironmentEntryByName("Ints/i0");
assertEquals("Ints/i0", env1.getEnvEntryName());
assertEquals("java.lang.Integer", env1.getType());