static String determinePackageName(Path baseDir, String basePackageName, Path classFile) {
        String subPackageName = determineSubpackageName(baseDir, classFile);
        return of(basePackageName, subPackageName)
                .filter(value -> !value.isEmpty()) // default package
                .collect(joining(PACKAGE_SEPARATOR_STRING));
    }
@Test
    void determinePackageNameFromComPackage() {
        Path baseDir = Paths.get("path", "to", "com");
        String basePackageName = "com";
        Path classFile = Paths.get("path", "to", "com", "example", "app", "App.class");
        String packageName = ClasspathSupport.determinePackageName(baseDir, basePackageName, classFile);
        assertEquals("com.example.app", packageName);
    }