@Test
public void validateReusableRecipeProject_realRecipe_withMaven() throws Exception {

	File dir = this.folder.newFolder();
	CreationBean bean = new CreationBean()
						.projectDescription( "some desc" ).projectName( "my-project" )
						.groupId( "net.roboconf" ).projectVersion( "1.0.0" ).mavenProject( true );
	ProjectUtils.createProjectSkeleton( dir, bean );
	File modelDirectory = new File( dir, Constants.MAVEN_SRC_MAIN_MODEL );
	Assert.assertTrue( modelDirectory.isDirectory());
	Utils.deleteFilesRecursively( new File( modelDirectory, Constants.PROJECT_DIR_DESC ));
	Utils.deleteFilesRecursively( new File( modelDirectory, Constants.PROJECT_DIR_INSTANCES ));
	Utils.deleteFilesRecursively( new File( modelDirectory, Constants.PROJECT_DIR_GRAPH ));
	String recipeContent = "toto {\n\tinstaller: script;\n}\n";
	File graphFile = new File( modelDirectory, Constants.PROJECT_DIR_GRAPH + "/recipe.graph" );
	Assert.assertTrue( graphFile.getParentFile().mkdir());
	Utils.writeStringInto( recipeContent, graphFile );
	ProjectValidationResult pvr = ProjectValidator.validateProject( modelDirectory );
	Assert.assertTrue( pvr.isRecipe());
	Assert.assertEquals( 1, pvr.getErrors().size());
	Assert.assertEquals( ErrorCode.PROJ_NO_RESOURCE_DIRECTORY, pvr.getErrors().get( 0 ).getErrorCode());
}