private void testFragment(final String wrapperFileName,
                              final String fragmentFileName) throws Exception {
        final Path dir = DataCreator.getDir();
        final Path wrapperPath = dir.resolve(wrapperFileName);
        final Path fragmentPath = dir.resolve(fragmentFileName);

        final JsonValidator jsonValidator = new JsonValidator();
        try (final Reader wrapper = Files.newBufferedReader(wrapperPath)) {
            try (final Reader fragment = Files.newBufferedReader(fragmentPath)) {
                final EntityResolver resolver = new FragmentEntity(new InputSource(fragment));
                SaxUtil.parse(wrapper, jsonValidator, resolver);
            }
        }
        assertThat(jsonValidator.getErrorCount()).isZero();
    }
This test exists to highlight a bug in the JDK XML parser related to corrupting characters when parsing XML 1.1.
We will leave this test in place to ensure that we don't accidentally switch back to using the JDK XML parser.
stroom-pipeline/src/test/java/stroom/pipeline/xml/bug/TestXml11ParserBug.java