@Test
public void testSpacesInBodyContentHandler() throws Exception {

    Metadata metadata = new Metadata();
    metadata.set(TikaCoreProperties.RESOURCE_NAME_KEY, TEST_FILE_NAME);
    ContentHandler handler = new BodyContentHandler(-1);
    ParseContext ctx = new ParseContext();
    try (InputStream stream = getResourceAsStream(TEST_FILE1)) {
        TikaTest.AUTO_DETECT_PARSER.parse(stream, handler, metadata, ctx);
    }
    String s = handler.toString();
    TikaTest.assertContains("0\t2.3\t2.4\tlorem", s);
    TikaTest.assertContains("tempor\n", s);
}