public static String packageName(URI classpathResourceUri) {
        String resourceName = resourceName(classpathResourceUri);
        return resourceName.replace(RESOURCE_SEPARATOR_CHAR, PACKAGE_SEPARATOR_CHAR);
    }
@Test
    void packageName() {
        URI classpathResourceUri = URI.create("classpath:com/example");
        String packageName = ClasspathSupport.packageName(classpathResourceUri);
        assertEquals("com.example", packageName);
    }