@Test
    public void testEXCELExtraction() throws Exception {
        final String expected = "Numbers and their Squares";
        Metadata metadata = new Metadata();
        try (TikaInputStream tis = TikaInputStream
                .get(getResourceAsStream("/test-documents/testEXCEL.xls"))) {
            File file = tis.getFile();
            String s1 = TIKA.parseToString(file);
            assertTrue(s1.contains(expected), "Text does not contain '" + expected + "'");
            Parser parser = TIKA.getParser();
            try (InputStream stream = new FileInputStream(file)) {
                parser.parse(stream, new DefaultHandler(), metadata, new ParseContext());
            }
        }
        assertEquals("Simple Excel document", metadata.get(TikaCoreProperties.TITLE));
    }
Junit test class for Tika {@link Parser}s.
tika-parsers/tika-parsers-standard/tika-parsers-standard-package/src/test/java/org/apache/tika/parser/TestParsers.java