@Test
public void testParsingWithInvalidRecipeProject_2() throws Exception {

	File dir = TestUtils.findTestFile( "/reusable.recipe.with.errors.2" );
	Assert.assertTrue( dir.exists());
	ApplicationLoadResult alr = RuntimeModelIo.loadApplicationFlexibly( dir );
	RoboconfErrorHelpers.filterErrorsForRecipes( alr );
	List<RoboconfError> errors = new ArrayList<>( alr.getLoadErrors());
	Assert.assertEquals( 2, errors.size());
	Assert.assertEquals( ErrorCode.RM_COMPONENT_IMPORTS_EXPORTS, errors.get( 0 ).getErrorCode());
	Assert.assertEquals( ErrorCode.PROJ_NO_RESOURCE_DIRECTORY, errors.get( 1 ).getErrorCode());
}