@Test
    public void testBasics() throws Exception {
        Detector detector = new DefaultDetector();
        try (TikaInputStream stream = getTestFile(file)) {
            assertEquals(MediaType.application("vnd.ms-tnef"),
                    detector.detect(stream, new Metadata()));
        }
    }
Tests for the TNEF (winmail.dat) parser
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/test/java/org/apache/tika/parser/microsoft/TNEFParserTest.java