@Test
public void testFindAllAncestors_testApp() {

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