@Test
public void testListChildrenInstances() throws Exception {

	List<Instance> instances = this.resource.listChildrenInstances( this.app.getName(), "/bip/bip", false );
	Assert.assertEquals( 0, instances.size());
	instances = this.resource.listChildrenInstances( this.app.getName(), "/bip/bip", true );
	Assert.assertEquals( 0, instances.size());
	instances = this.resource.listChildrenInstances( "inexisting", "/bip/bip", false );
	Assert.assertEquals( 0, instances.size());
	instances = this.resource.listChildrenInstances( this.app.getName(), null, false );
	Assert.assertEquals( this.app.getRootInstances().size(), instances.size());
	instances = this.resource.listChildrenInstances( this.app.getName(), null, true );
	Assert.assertEquals( InstanceHelpers.getAllInstances( this.app ).size(), instances.size());
	instances = this.resource.listChildrenInstances( this.app.getName(), InstanceHelpers.computeInstancePath( this.app.getTomcatVm()), false );
	Assert.assertEquals( 1, instances.size());
	instances = this.resource.listChildrenInstances( this.app.getName(), InstanceHelpers.computeInstancePath( this.app.getTomcatVm()), true );
	Assert.assertEquals( 2, instances.size());
}