public static ImmutableList<String> glob(final String glob) {
        Path path = getGlobPath(glob);

        int globIndex = getGlobIndex(path);
        if (globIndex < 0) {
            return of(glob);
        }

        return doGlob(path, searchPath(path, globIndex));
    }
@Test
    public void should_glob_absolute_files_with_glob(@TempDir final Path folder) throws IOException {
        Path tempFile = folder.resolve("glob.json");

        java.nio.file.Files.createFile(tempFile);
        File file = tempFile.toFile();
        String glob = Files.join(folder.toFile().getAbsolutePath(), "*.json");
        ImmutableList<String> files = Globs.glob(glob);
        assertThat(files.contains(file.getAbsolutePath()), is(true));
    }