@Test
public void testComputeInstancePath() {

	Instance instance1 = new Instance();
	Assert.assertEquals( "/", InstanceHelpers.computeInstancePath( instance1 ));
	instance1.setName( "inst1" );
	Assert.assertEquals( "/inst1", InstanceHelpers.computeInstancePath( instance1 ));
	Instance instance2 = new Instance( "inst2" );
	Assert.assertEquals( "/inst2", InstanceHelpers.computeInstancePath( instance2 ));
	instance1.getChildren().add( instance2 );
	instance2.setParent( instance1 );
	Assert.assertEquals( "/inst1", InstanceHelpers.computeInstancePath( instance1 ));
	Assert.assertEquals( "/inst1/inst2", InstanceHelpers.computeInstancePath( instance2 ));
}