@Test
public void testExcelXLSB() throws Exception {

    Detector detector = new DefaultDetector();
    Metadata m = new Metadata();
    m.add(TikaCoreProperties.RESOURCE_NAME_KEY, "excel.xlsb");
    // Should be detected correctly
    MediaType type;
    try (InputStream input = ExcelParserTest.class.getResourceAsStream(
            "/test-documents/testEXCEL.xlsb")) {
        type = detector.detect(input, m);
        assertEquals("application/vnd.ms-excel.sheet.binary.macroenabled.12", type.toString());
    }
    // OfficeParser won't handle it
    assertEquals(false, (new OfficeParser()).getSupportedTypes(new ParseContext()).contains(type));
    // OOXMLParser will (soon) handle it
    assertTrue((new OOXMLParser()).getSupportedTypes(new ParseContext()).contains(type));
    // AutoDetectParser doesn't break on it
    ParseContext context = new ParseContext();
    context.set(Locale.class, Locale.US);
    String content = getText("testEXCEL.xlsb", new Metadata(), context);
    assertContains("This is an example spreadsheet", content);
}