@Test
public void testFindScopedInstancesDirectories() throws Exception {

	final File appDir = this.folder.newFolder();
	TestApplication app = new TestApplication();
	app.setDirectory( appDir );
	Assert.assertEquals( 0, ResourceUtils.findScopedInstancesDirectories( app ).size());
	File vmDir = new File( appDir, Constants.PROJECT_DIR_GRAPH + "/" + app.getMySqlVm().getComponent().getName());
	Assert.assertTrue( vmDir.mkdirs());
	Map<Component,File> map = ResourceUtils.findScopedInstancesDirectories( app );
	Assert.assertEquals( 1, map.size());
	Assert.assertEquals( vmDir, map.get( app.getMySqlVm().getComponent()));
}