FSCatalog { public Map<String, String> parseCatalog(String catalogURI) { Map<String, String> map = null; try (InputStream in = FSCatalog.class.getResourceAsStream(catalogURI)){ map = parseCatalog(new InputSource(new BufferedInputStream(in))); } catch (Exception ex) { XRLog.log(Level.WARNING, LogMessageId.LogMessageId1Param.XML_ENTITIES_COULD_NOT_OPEN_XML_CATALOG_FROM_URI, catalogURI, ex); map = Collections.emptyMap(); } return map; } FSCatalog(); Map<String, String> parseCatalog(String catalogURI); Map<String, String> parseCatalog(InputSource inputSource);  }
@Test public void testParseCatalog() { FSCatalog instance = new FSCatalog(); String catalogUri = "/resources/schema/openhtmltopdf/catalog-special.xml"; Map<String, String> catalog = instance.parseCatalog(catalogUri); String publicId = "- Assert.assertTrue(catalog.containsKey(publicId)); }