@Test
    public void testXmlParsingXXE() throws Exception
    {
        // Setup test fixture.
        final File input = new File(getClass().getClassLoader().getResource("xxe.xml").getFile());

        // Execute system under test / verify results.
        assertThrows(SAXException.class, () -> Launcher.parse(input));
    }
Checks that parsing an XML file that contains a reference to an external entity fails.
starter/src/test/java/org/jivesoftware/openfire/launcher/LauncherTest.java