@Test
public void testGraphs_notRoot() {

	Component comp1 = new Component( "comp1" ).installerName( Constants.TARGET_INSTALLER );
	Component comp2 = new Component( "comp2" ).installerName( Constants.TARGET_INSTALLER );
	comp1.addChild( comp2 );
	Graphs graphs = new Graphs();
	graphs.getRootComponents().add( comp2 );
	Iterator<ModelError> iterator = RuntimeModelValidator.validate( graphs ).iterator();
	Assert.assertEquals( ErrorCode.RM_NOT_A_ROOT_COMPONENT, iterator.next().getErrorCode());
	Assert.assertFalse( iterator.hasNext());
}