@Test
public void testApplicationWithMissingGraph() throws Exception {

	File dir = this.folder.newFolder();
	Assert.assertTrue( new File( dir, Constants.PROJECT_DIR_DESC ).mkdir());
	Assert.assertTrue( new File( dir, Constants.PROJECT_DIR_GRAPH ).mkdir());
	Assert.assertTrue( new File( dir, Constants.PROJECT_DIR_INSTANCES ).mkdir());
	Assert.assertTrue( new File( dir, Constants.PROJECT_DIR_INSTANCES + "/model.instances" ).createNewFile());
	ApplicationTemplateDescriptor desc = new ApplicationTemplateDescriptor();
	desc.setName( "app name" );
	desc.setVersion( "3.0" );
	desc.setInstanceEntryPoint( "model.instances" );
	desc.setDslId( "roboconf-1.0" );
	ApplicationTemplateDescriptor.save( new File( dir, Constants.PROJECT_DIR_DESC + "/" + Constants.PROJECT_FILE_DESCRIPTOR ), desc );
	Iterator<RoboconfError> it = RuntimeModelIo.loadApplicationFlexibly( dir ).loadErrors.iterator();
	Assert.assertEquals( ErrorCode.RM_MISSING_APPLICATION_GEP, it.next().getErrorCode());
	Assert.assertEquals( ErrorCode.CO_GRAPH_COULD_NOT_BE_BUILT, it.next().getErrorCode());
}