@Test
public void testComponentChildren() throws Exception {

	List<Component> components = this.resource.findComponentChildren( "inexisting", "" );
	Assert.assertEquals( 0, components.size());
	components = this.resource.findComponentChildren( this.app.getName(), "inexisting-component" );
	Assert.assertEquals( 0, components.size());
	components = this.resource.findComponentChildren( this.app.getName(), null );
	Assert.assertEquals( 1, components.size());
	Assert.assertTrue( components.contains( this.app.getMySqlVm().getComponent()));
	components = this.resource.findComponentChildren( this.app.getName(), this.app.getMySqlVm().getComponent().getName());
	Assert.assertEquals( 2, components.size());
	Assert.assertTrue( components.contains( this.app.getMySql().getComponent()));
	Assert.assertTrue( components.contains( this.app.getTomcat().getComponent()));
}