@Test
public void testComponentAncestors() throws Exception {

	List<Component> components = this.resource.findComponentAncestors( "inexisting", "my-comp" );
	Assert.assertEquals( 0, components.size());
	components = this.resource.findComponentAncestors( this.app.getName(), "my-comp" );
	Assert.assertEquals( 0, components.size());
	components = this.resource.findComponentAncestors( this.app.getName(), this.app.getTomcat().getComponent().getName());
	Assert.assertEquals( 1, components.size());
	Assert.assertTrue( components.contains( this.app.getMySqlVm().getComponent()));
}