private void testUrl(String expected, String url, String file) throws IOException {
        InputStream in = MimeDetectionTest.class.getResourceAsStream(file);
        testStream(expected, url, in);
    }
The test case only works on the detector that only has grb model as
currently the grb model is used as an example; if more models are added
in the TrainedModelDetector, the following tests will need to modified to reflect
the corresponding type instead of test-equal with the "OCTET_STREAM";

@throws Exception
tika-core/src/test/java/org/apache/tika/detect/MimeDetectionWithNNTest.java