    @Test
    public void listDirsShouldListDirsLocatedInPath() throws IOException {

        Path tempDir = Files.createTempDirectory(this.getClass().getSimpleName());
        Path subDir1 = Files.createTempDirectory(tempDir, "list_me");
        Path subDir2 = Files.createTempDirectory(tempDir, "list_me");

        // when
        List<String> paths = HdfsUtils.listDirs(new Configuration(), tempDir.toString());

        // then
        assertEquals(2, paths.size());
        List<String> expecteds = Stream.of(subDir1.toString(), subDir2.toString())
                .map(path -> String.format("file:%s", path))
                .sorted().collect(Collectors.toList());
        List<String> actuals = paths.stream().sorted().collect(Collectors.toList());
        assertEquals(expecteds, actuals);
    }