@Test
public void testFindAllComponents_simple() {

	ApplicationTemplate app = new ApplicationTemplate();
	Assert.assertEquals( 0, ComponentHelpers.findAllComponents( app ).size());
	Graphs graphs = new Graphs();
	app.setGraphs( graphs );
	Component comp1 = new Component( "comp1" );
	graphs.getRootComponents().add( comp1 );
	Assert.assertEquals( 1, ComponentHelpers.findAllComponents( app ).size());
	comp1.addChild( new Component( "comp-2" ));
	Assert.assertEquals( 2, ComponentHelpers.findAllComponents( app ).size());
	Component comp3 = new Component( "comp_3" );
	graphs.getRootComponents().add( comp3 );
	comp3.addChild( new Component( "comp-2" ));
	Assert.assertEquals( 3, ComponentHelpers.findAllComponents( app ).size());
}