@Test
public void testFindComponentFrom() {

	TestApplicationTemplate app = new TestApplicationTemplate();
	Component comp = app.getTomcatVm().getComponent();
	Assert.assertNull( ComponentHelpers.findComponentFrom( comp, "inexisting" ));
	Assert.assertNull( ComponentHelpers.findComponentFrom( null, "inexisting" ));
	Assert.assertEquals( comp, ComponentHelpers.findComponentFrom( comp, comp.getName()));
	Component targetComp = app.getTomcat().getComponent();
	Assert.assertEquals( targetComp, ComponentHelpers.findComponentFrom( comp, targetComp.getName()));
	targetComp = app.getWar().getComponent();
	Assert.assertEquals( targetComp, ComponentHelpers.findComponentFrom( comp, targetComp.getName()));
}