@Test
    public void testTextBasedFormatsDetection() throws Exception {
        assertTypeByName("text/plain", "testTXT.txt");
        assertType("text/plain", "testTXT.txt");

        assertTypeByName("text/css", "testCSS.css");
        assertType("text/css", "testCSS.css");

        assertTypeByName("text/csv", "testCSV.csv");
        assertType("text/csv", "testCSV.csv");

        assertTypeByName("text/html", "testHTML.html");
        assertType("text/html", "testHTML.html");

        assertTypeByName("text/javascript", "testJS.js");
        assertType("text/javascript", "testJS.js");

        assertType("text/vnd.graphviz", "testGRAPHVIZd.dot");
        assertType("text/vnd.graphviz", "testGRAPHVIZg.dot");
        assertType("text/vnd.graphviz", "testGRAPHVIZdc.dot");

        assertTypeByName("application/x-bat", "testBAT.bat");
        assertTypeByName("application/x-bat", "testCMD.cmd");
        assertType("application/x-bat", "testBAT.bat");
        assertType("application/x-bat", "testBATUpper.bat");
    }
Formats which are based on plain text
tika-parsers/tika-parsers-standard/tika-parsers-standard-package/src/test/java/org/apache/tika/mime/TestMimeTypes.java