ValidationPolicyFacade extends AbstractJaxbFacade<ConstraintsParameters> { public ValidationPolicy getValidationPolicy(String path) throws JAXBException, XMLStreamException, IOException, SAXException { try (InputStream is = ValidationPolicyFacade.class.getResourceAsStream(path)) { 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 incorrectPath() throws JAXBException, XMLStreamException, IOException, SAXException { assertThrows(NullPointerException.class, () -> facade.getValidationPolicy("aaaa")); assertThrows(NullPointerException.class, () -> facade.getValidationPolicy((InputStream) null)); assertThrows(NullPointerException.class, () -> facade.getValidationPolicy((File) null)); }