@VisibleForTesting
    static Optional<String> findEntryClass(File jarFile) throws IOException {
        return findFirstManifestAttribute(
                jarFile,
                PackagedProgram.MANIFEST_ATTRIBUTE_ASSEMBLER_CLASS,
                PackagedProgram.MANIFEST_ATTRIBUTE_MAIN_CLASS);
    }
@Test
    void testFindEntryClassAssemblerClassAndMainClass() throws IOException {
        // We want the assembler class entry to have precedence over main class
        File jarFile =
                createJarFileWithManifest(
                        ImmutableMap.of(
                                PackagedProgram.MANIFEST_ATTRIBUTE_ASSEMBLER_CLASS,
                                "AssemblerClass",
                                PackagedProgram.MANIFEST_ATTRIBUTE_MAIN_CLASS,
                                "MainClass"));

        Optional<String> entry = JarManifestParser.findEntryClass(jarFile);

        assertThat(entry).isPresent().get().isEqualTo("AssemblerClass");
    }