@Test
    public void testDiffsFrom241() throws Exception {

        Map<String, String> currentDefault = getDefault();
        String path241 = "/2.4.1-no-tesseract.txt";
        if (new TesseractOCRParser().hasTesseract()) {
            path241 = "/2.4.1-tesseract.txt";
        }

        int checked = 0;
        //The initial lists were developed with exiftool installed.  We have since
        //modified the 2.4.1-* files to act as if no exiftool is installed.
        //However, on systems with ffmpeg or exiftool installed, we need
        //to override those file formats
        CompositeParser externalParser = (CompositeParser) new CompositeExternalParser();
        try (BufferedReader reader =
                     new BufferedReader(new InputStreamReader(
                             getClass().getResourceAsStream(path241),
                             StandardCharsets.UTF_8))) {
            String line = reader.readLine();
            while (line != null) {
                String[] data = line.split("\t");
                String mediaType = data[0];
                String parserClass = data[1];

                Parser external = externalParser.getParsers().get(MediaType.parse(mediaType));
                if (external != null) {
                    parserClass = externalParser.getClass().toString();
                }
                assertEquals(parserClass, currentDefault.get(mediaType),
                        "for mediaType '" + mediaType + "'");
                checked++;
                line = reader.readLine();
            }
        }
        assertTrue(checked > 340);
    }
We fixed parser ordering in 2.4.1.  This confirms going forward that the integration
of tika-parsers-standard with the tika-parser-scientific package maintains
parser order.

This does not currently test parsers added after 2.4.1.

We included 2.4.0 for historical reasons to show what the behavior was
before the fix.
tika-parsers/tika-parsers-extended/tika-parser-scientific-package/src/test/java/org/apache/tika/parser/scientific/integration/TestParsers.java