public static String packageNameOfResource(String classpathResourceName) {
        Path parent = Paths.get(classpathResourceName).getParent();
        if (parent == null) {
            return DEFAULT_PACKAGE_NAME;
        }
        String pathSeparator = parent.getFileSystem().getSeparator();
        return parent.toString().replace(pathSeparator, PACKAGE_SEPARATOR_STRING);
    }
@Test
    void packageNameOfResource() {
        String packageName = ClasspathSupport.packageNameOfResource("com/example/app.feature");
        assertEquals("com.example", packageName);
    }