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));