final String policiesPath = getClass().getPackage().getName().replace('.', '/') + "/"
+ XACMLTestUtils.TESTOBJECTS_POLICIES;
//create XML configuration for the JBossPDP (as a JAXBElement)
PDP pdp = new PDP();
final PoliciesType policies = new PoliciesType();
final PolicySetType policySet = new PolicySetType();
policySet.setLocation(policiesPath + "/xacml-policySet.xml");
for (short i = 2; i <= 5; i++) {
final PolicyType policy = new PolicyType();
policy.setLocation(policiesPath + "/xacml-policy" + i + ".xml");
policySet.getPolicy().add(policy);
}
policies.getPolicySet().add(policySet);
pdp.setPolicies(policies);
final LocatorType locator = new LocatorType();
locator.setName(JBossPolicySetLocator.class.getName());