@Test
    public void testWord() throws Exception {
        Metadata metadata = new Metadata();
        String content = getText("testWORD.docx", metadata, new ParseContext());
        assertEquals("application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                metadata.get(Metadata.CONTENT_TYPE));
        assertEquals("Sample Word Document", metadata.get(TikaCoreProperties.TITLE));
        assertEquals("Keith Bennett", metadata.get(TikaCoreProperties.CREATOR));
        assertTrue(content.contains("Sample Word Document"));

    }
Test the plain text output of the Word converter

@throws Exception
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/test/java/org/apache/tika/parser/microsoft/ooxml/OOXMLParserTest.java