static List<Export> exportedPackages(File jarFile) {
        var manifest = getOsgiManifest(jarFile);
        if (manifest == null) return List.of();
        try {
            return parseExports(manifest);
        } catch (Exception e) {
            throw new RuntimeException(String.format("Invalid manifest in bundle '%s'", jarFile.getPath()), e);
        }
    }
@Test
    void require_that_invalid_exports_throws_exception() {
        try {
            AnalyzeBundle.exportedPackages(jarFile("errorExport.jar"));
            fail();
        } catch (RuntimeException e) {
            assertTrue(e.getMessage().contains("Invalid manifest in bundle 'src/test/resources/jar/errorExport.jar'"));
            assertTrue(e.getCause().getMessage().startsWith("Failed parsing Export-Package"), e.getCause().getMessage());
        }
    }