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