u.setSchema(schema);
URL configFile = tcl.getResource("test/config/basicPolicySetConfig.xml");
JAXBElement<?> j = (JAXBElement<?>) u.unmarshal(configFile);
assertNotNull("JAXBElement is !null", j);
PDP pdp = (PDP) j.getValue();
assertNotNull("PDP is not null", pdp);
//Validate Policies
PoliciesType pts = pdp.getPolicies();
assertNotNull("PoliciesType is not null", pts);
List<PolicySetType> pst = pts.getPolicySet();
assertNotNull("PolicySetType is not null", pst);
assertEquals("1 PolicySet", 1, pst.size());
PolicySetType psetType = pst.get(0);
String loc = psetType.getLocation();
assertTrue("Location of PolicySet is >0", loc.length() > 0);
assertEquals("PolicyType is null", 0, pts.getPolicy().size());
//Validate Locators
LocatorsType lts = pdp.getLocators();
assertNotNull("LocatorsType != null", lts);
List<LocatorType> lt = lts.getLocator();
assertNotNull("LocatorType != null", lt);
assertEquals("LocatorType != null", 1, lt.size());
}