assertDetect(detector, MediaType.OCTET_STREAM, " <html");
assertDetect(detector, MediaType.OCTET_STREAM, "");
}
public void testDetectOffsetRange() throws Exception {
MediaType html = new MediaType("text", "html");
Detector detector = new MagicDetector(
html, "<html".getBytes("ASCII"), null, 0, 64);
assertDetect(detector, html, "<html");
assertDetect(detector, html, "<html><head/><body/></html>");