CrossrefBuilder { static Schema getCrossrefSchema() throws SAXException { if (SCHEMA_CROSSREF == null) { SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); factory.setResourceResolver(new SimpleLSResourceResolver() .base(CrossrefBuilder.class) ); SCHEMA_CROSSREF = factory.newSchema(CrossrefBuilder.class.getResource(XSD_FILENAME)); } return SCHEMA_CROSSREF; } CrossrefBuilder(File outputFolder); File createPackage(CrossrefPackage pkg);  }
@Test public void testGetSchema() throws Exception { assertNotNull(CrossrefBuilder.getCrossrefSchema()); }