@Test
public void testFilterErrorsForRecipes() {

	List<RoboconfError> errors = new ArrayList<> ();
	errors.add( new RoboconfError( CMD_CANNOT_HAVE_ANY_PARENT ));
	errors.add( new RoboconfError( RM_ROOT_INSTALLER_MUST_BE_TARGET ));
	errors.add( new RoboconfError( RM_ROOT_INSTALLER_MUST_BE_TARGET ));
	errors.add( new RoboconfError( RM_UNRESOLVABLE_FACET_VARIABLE ));
	errors.add( new RoboconfError( RM_UNREACHABLE_COMPONENT ));
	errors.add( new RoboconfError( RM_ORPHAN_FACET_WITH_CHILDREN ));
	errors.add( new RoboconfError( RM_ORPHAN_FACET ));
	RoboconfErrorHelpers.filterErrorsForRecipes( errors );
	Assert.assertEquals( 1, errors.size());
	Assert.assertEquals( CMD_CANNOT_HAVE_ANY_PARENT, errors.iterator().next().getErrorCode());
}