    @Test
    public void testGetEntries() throws IOException
    {

        final File dir = tmp.newFolder("names");

        new File(dir, "foo.txt").createNewFile();
        new File(dir, "a/b").mkdirs();
        new File(dir, "a/bar.txt").createNewFile();
        new File(dir, "c").mkdirs();

        assertEquals(newArrayList("a/", "a/b/", "a/bar.txt", "c/", "foo.txt"), RepositoryDirectoryUtil.getEntries(dir));
    }