ValidationPolicyXmlDefiner { public static Schema getSchema() throws IOException, SAXException { if (schema == null) { try (InputStream inputStream = ValidationPolicyXmlDefiner.class.getResourceAsStream(VALIDATION_POLICY_SCHEMA_LOCATION)) { SchemaFactory sf = XmlDefinerUtils.getInstance().getSecureSchemaFactory(); schema = sf.newSchema(new Source[] { new StreamSource(inputStream) }); } } return schema; } private  ValidationPolicyXmlDefiner(); static JAXBContext getJAXBContext(); static Schema getSchema(); static final ObjectFactory OBJECT_FACTORY; }
@Test public void getSchema() throws SAXException, IOException { assertNotNull(ValidationPolicyXmlDefiner.getSchema()); assertNotNull(ValidationPolicyXmlDefiner.getSchema()); }