@Test
public void testStoreInstanceResources_notADirectory() throws Exception {

	final File appDir = this.folder.newFolder();
	final String componentName = "my-component";
	final File componentDirectory = new File( appDir, Constants.PROJECT_DIR_GRAPH + File.separator + componentName );
	Assert.assertTrue( componentDirectory.getParentFile().mkdirs());
	Assert.assertTrue( componentDirectory.createNewFile());
	Instance instance = new Instance( "whatever" ).component( new Component( componentName ));
	Map<?,?> map = ResourceUtils.storeInstanceResources( appDir, instance );
	Assert.assertEquals( 0, map.size());
}