@Test
    public void testDeletedText() throws Exception {
        String xml = getXML("testWordPerfect.wpd").xml;
        assertContains("this was deleted.", xml);


        try (InputStream is = getResourceAsStream(
                "/org/apache/tika/parser/wordperfect/tika-config.xml")) {
            assertNotNull(is);
            TikaConfig tikaConfig = new TikaConfig(is);

            Parser p = tikaConfig.getParser();

            xml = getXML("testWordPerfect.wpd", p).xml;
            assertNotContained("this was deleted", xml);
        }
    }
Junit test class for the {@link WordPerfectParser}.

@author Pascal Essiembre
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/test/java/org/apache/tika/parser/wordperfect/WordPerfectTest.java