diff --git a/poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java b/poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java index 12c6bc97b6..6adbf31b1e 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java @@ -487,4 +487,13 @@ class TestXWPFWordExtractor { assertEquals( "The following word is: CAPITALIZED.", txt.trim()); } } + + @Test + void testTika2163() throws IOException { + try (XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("ChronologicalResume.dotx"); + XWPFWordExtractor extractor = new XWPFWordExtractor(doc)) { + String txt = extractor.getText(); + assertContains(txt, "but a great-looking résumé doesn’t have to be!"); + } + } } diff --git a/test-data/document/ChronologicalResume.dotx b/test-data/document/ChronologicalResume.dotx new file mode 100644 index 0000000000..5d24a7848c Binary files /dev/null and b/test-data/document/ChronologicalResume.dotx differ