@Test
    public void testMachO() throws Exception {
        List<Metadata> metadataList = getRecursiveMetadata("testMacOS-x86_64-arm64");
        assertEquals(3, metadataList.size());
        assertEquals("application/x-mach-o-universal", metadataList.get(0).get(Metadata.CONTENT_TYPE));
        for (int i = 1; i < 3; i++) {
            assertEquals("application/x-mach-o-executable", metadataList.get(i).get(Metadata.CONTENT_TYPE));
        }
    }
Test case for parsing universal executable files.
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-code-module/src/test/java/org/apache/tika/parser/executable/UniversalExecutableParserTest.java