@Test
public void testNoMarkupInToTextHandler() throws Exception {

    ContentHandler contentHandler = new ToTextContentHandler();
    ParseContext parseContext = new ParseContext();
    try (TikaInputStream tis = TikaInputStream.get(
            getResourceAsStream("/test-documents/testJAVA.java"))) {
        AUTO_DETECT_PARSER.parse(tis, contentHandler, createMetadata("text/x-java-source"),
                parseContext);
    }
    String strContent = contentHandler.toString();
    assertContains("public class HelloWorld {", strContent);
    assertNotContained("background-color", strContent);
}