@Test
    public void testTurningOffList() throws Exception {
        try (InputStream is = getResourceAsStream(
                "/org/apache/tika/parser/microsoft/rtf/ignoreListMarkup-tika-config.xml")) {
            assertNotNull(is);
            TikaConfig tikaConfig = new TikaConfig(is);
            Parser p = new AutoDetectParser(tikaConfig);
            String content = getXML("testRTFListMicrosoftWord.rtf", p).xml;
            assertNotContained("<ol>", content);
            assertNotContained("<ul>", content);
            assertNotContained("<li>", content);
        }
    }
Junit test class for the Tika {@link RTFParser}
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/test/java/org/apache/tika/parser/microsoft/rtf/RTFParserTest.java