@Test
    public void testBodyAndAttachments() throws Exception {
        ContainerExtractor extractor = new ParserContainerExtractor();

        // Process it with recursing
        // Will have the message body RTF and the attachments
        TrackingHandler handler = process(file, extractor, true);
        assertEquals(6, handler.filenames.size());
        assertEquals(6, handler.mediaTypes.size());

        // We know the filenames for all of them
        assertEquals("message.rtf", handler.filenames.get(0));
        assertEquals(MediaType.application("rtf"), handler.mediaTypes.get(0));

        assertEquals("quick.doc", handler.filenames.get(1));
        assertEquals(MediaType.application("msword"), handler.mediaTypes.get(1));

        assertEquals("quick.html", handler.filenames.get(2));
        assertEquals(MediaType.text("html"), handler.mediaTypes.get(2));

        assertEquals("quick.pdf", handler.filenames.get(3));
        assertEquals(MediaType.application("pdf"), handler.mediaTypes.get(3));

        assertEquals("quick.txt", handler.filenames.get(4));
        assertEquals(MediaType.text("plain"), handler.mediaTypes.get(4));

        assertEquals("quick.xml", handler.filenames.get(5));
        assertEquals(MediaType.application("xml"), handler.mediaTypes.get(5));
    }
Check the Rtf and Attachments are returned
as expected
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/test/java/org/apache/tika/parser/microsoft/TNEFParserTest.java