@Test
    public void testMultipartTextAttachment() throws Exception {
        List<Metadata> metadataList = getRecursiveMetadata("testRFC822_multipart_attachments.eml");
        assertEquals(3, metadataList.size());
        assertContains("This is the html body of the main msg.",
                metadataList.get(0).get(TikaCoreProperties.TIKA_CONTENT));

        assertContains("This is Test TXTA File for parser",
                metadataList.get(1).get(TikaCoreProperties.TIKA_CONTENT));
        assertNotContained("This is Test TXTA File for parser",
                metadataList.get(0).get(TikaCoreProperties.TIKA_CONTENT));
        assertEquals("/Test TxtA.txt", metadataList.get(1).get(TikaCoreProperties.EMBEDDED_RESOURCE_PATH));
        assertEquals(TikaCoreProperties.EmbeddedResourceType.ATTACHMENT.toString(),
                metadataList.get(1).get(TikaCoreProperties.EMBEDDED_RESOURCE_TYPE));
        //make sure we extracted creation and modified dates
        assertTrue(metadataList.get(1).get(TikaCoreProperties.CREATED).startsWith("2022-11-"));
        assertTrue(metadataList.get(1).get(TikaCoreProperties.MODIFIED).startsWith("2022-11-"));


        assertContains("This is Test TXTB File for parser",
                metadataList.get(2).get(TikaCoreProperties.TIKA_CONTENT));
        assertNotContained("This is Test TXTB File for parser",
                metadataList.get(0).get(TikaCoreProperties.TIKA_CONTENT));
        assertEquals("/Test TxtB.txt",
                metadataList.get(2).get(TikaCoreProperties.EMBEDDED_RESOURCE_PATH));
        assertEquals(TikaCoreProperties.EmbeddedResourceType.ATTACHMENT.toString(),
                metadataList.get(2).get(TikaCoreProperties.EMBEDDED_RESOURCE_TYPE));
        //make sure we extracted creation and modified dates
        assertTrue(metadataList.get(2).get(TikaCoreProperties.CREATED).startsWith("2022-11-"));
        assertTrue(metadataList.get(2).get(TikaCoreProperties.MODIFIED).startsWith("2022-11-"));
    }
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