static URI determineClasspathResourceUri(Path baseDir, String basePackagePath, Path resource) {
        String subPackageName = determineSubpackagePath(baseDir, resource);
        String resourceName = resource.getFileName().toString();
        String classpathResourcePath = of(basePackagePath, subPackageName, resourceName)
                .filter(value -> !value.isEmpty()) // default package .
                .collect(joining(RESOURCE_SEPARATOR_STRING));
        return classpathResourceUri(classpathResourcePath);
    }
@Test
    void determineFullyQualifiedResourceNameFromComPackage() {
        Path baseDir = Paths.get("path", "to", "com");
        String basePackageName = "com";
        Path resourceFile = Paths.get("path", "to", "com", "example", "app", "app.feature");
        URI fqn = ClasspathSupport.determineClasspathResourceUri(baseDir, basePackageName, resourceFile);
        assertEquals(URI.create("classpath:com/example/app/app.feature"), fqn);
    }