@PublicAPI(usage = ACCESS)
    public static Set<Location> ofPackage(String pkg) {
        ImmutableSet.Builder<Location> result = ImmutableSet.builder();
        for (Location location : getLocationsOf(asResourceName(pkg))) {
            result.add(location);
        }
        return result.build();
    }
@Test
    @SuppressWarnings("EmptyTryBlock")
    public void locations_of_packages_within_JAR_URIs_that_do_not_contain_package_folder() throws Exception {
        independentClasspathRule.configureClasspath();

        Set<Location> locations = Locations.ofPackage(independentClasspathRule.getIndependentTopLevelPackage());
        ClassFileSource source = getOnlyElement(locations).asClassFileSource(new ImportOptions());

        for (ClassFileLocation classFileLocation : source) {
            try (InputStream ignored = classFileLocation.openStream()) {
                // we only care that we can open the stream
            }
        }

        assertThat(source)
                .as("URIs in " + independentClasspathRule.getIndependentTopLevelPackage())
                .hasSize(independentClasspathRule.getNamesOfClasses().size());
    }