public void testGetOrganizationsAllowed() throws Exception { loadContentPackage1(); Element orgs_element = cpCore .getRootManifestElement() .getChild(CP_Core.ORGANIZATIONS, cpCore.getRootManifestElement().getNamespace()); Element[] orgs = cpCore.getOrganizationsAllowed(orgs_element); assertTrue("List should not be empty", orgs.length > 0); for (int i = 0; i < orgs.length; i++) { Element element = orgs[i]; String id = element.getAttributeValue(CP_Core.IDENTIFIER); assertTrue("Organization should have ID", id != null && !id.equals("")); assertEquals("Should be an Organization Element", CP_Core.ORGANIZATION, element.getName()); } }