@Test
public void testListDirectories() throws Exception {

	File root = new File( "inexisting" );
	Assert.assertEquals( 0, Utils.listDirectories( root ).size());
	root = this.folder.newFolder();
	Assert.assertEquals( 0, Utils.listDirectories( root ).size());
	Assert.assertTrue( new File( root, "toto.txt" ).createNewFile());
	Assert.assertTrue( new File( root, "dir" ).mkdir());
	Assert.assertTrue( new File( root, "dir/dir1" ).mkdir());
	List<File> directories = Utils.listDirectories( root );
	Assert.assertEquals( 1, directories.size());
	Assert.assertEquals( "dir", directories.get( 0 ).getName());
}