@Test
public void testFindAllChildren_testApp() {

	TestApplicationTemplate app = new TestApplicationTemplate();
	Collection<Component> children = ComponentHelpers.findAllChildren( app.getTomcat().getComponent());
	Assert.assertEquals( 1, children.size());
	Assert.assertTrue( children.contains( app.getWar().getComponent()));
	children = ComponentHelpers.findAllChildren( app.getTomcatVm().getComponent());
	Assert.assertEquals( 2, children.size());
	Assert.assertTrue( children.contains( app.getTomcat().getComponent()));
	Assert.assertTrue( children.contains( app.getMySql().getComponent()));
	children = ComponentHelpers.findAllChildren( app.getMySqlVm().getComponent());
	Assert.assertEquals( 2, children.size());
	Assert.assertTrue( children.contains( app.getTomcat().getComponent()));
	Assert.assertTrue( children.contains( app.getMySql().getComponent()));
	Assert.assertEquals( 0, ComponentHelpers.findAllChildren( app.getMySql().getComponent()).size());
	Assert.assertEquals( 0, ComponentHelpers.findAllChildren( app.getWar().getComponent()).size());
}