ValidationPolicyFacade extends AbstractJaxbFacade<ConstraintsParameters> { public ValidationPolicy getTrustedListValidationPolicy() throws JAXBException, XMLStreamException, IOException, SAXException { try (InputStream is = ValidationPolicyFacade.class.getResourceAsStream(TRUSTED_LIST_VALIDATION_POLICY_LOCATION)) { return getValidationPolicy(is); } }  static ValidationPolicyFacade newFacade(); ValidationPolicy getDefaultValidationPolicy(); ValidationPolicy getTrustedListValidationPolicy(); ValidationPolicy getValidationPolicy(String path); ValidationPolicy getValidationPolicy(InputStream is); ValidationPolicy getValidationPolicy(File file);  }
@Test public void getTrustedListValidationPolicy() throws JAXBException, XMLStreamException, IOException, SAXException { ValidationPolicy trustedListValidationPolicy = ValidationPolicyFacade.newFacade() .getTrustedListValidationPolicy(); assertNotNull(trustedListValidationPolicy); assertEquals("Policy to validate Trusted Lists", trustedListValidationPolicy.getPolicyDescription()); }