@Test
    public void testGroupwise() throws Exception {
        List<Metadata> metadataList = getRecursiveMetadata("testGroupWiseEml.eml");
        assertEquals(3, metadataList.size());
        assertContains("test<", metadataList.get(0).get(TikaCoreProperties.TIKA_CONTENT));
        assertContains("test2", metadataList.get(1).get(TikaCoreProperties.TIKA_CONTENT));
        assertEquals(TikaCoreProperties.EmbeddedResourceType.ATTACHMENT.toString(),
                metadataList.get(1).get(TikaCoreProperties.EMBEDDED_RESOURCE_TYPE));
        assertEquals("/test.eml",
                metadataList.get(1).get(TikaCoreProperties.EMBEDDED_RESOURCE_PATH));

        assertContains("ssssss", metadataList.get(2).get(TikaCoreProperties.TIKA_CONTENT));
        assertEquals(TikaCoreProperties.EmbeddedResourceType.ATTACHMENT.toString(),
                metadataList.get(2).get(TikaCoreProperties.EMBEDDED_RESOURCE_TYPE));
        assertEquals("/Neues Textdokument.txt",
                metadataList.get(2).get(TikaCoreProperties.EMBEDDED_RESOURCE_PATH));

    }
TIKA-1222 When requested, ensure that the various attachments of
the mail come through properly as embedded resources
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-mail-module/src/test/java/org/apache/tika/parser/mail/RFC822ParserTest.java