@Test
public void testFindRootInstancePath() {

	Assert.assertEquals( "", InstanceHelpers.findRootInstancePath( null ));
	Assert.assertEquals( "", InstanceHelpers.findRootInstancePath( "  " ));
	Assert.assertEquals( "root", InstanceHelpers.findRootInstancePath( "root" ));
	Assert.assertEquals( "root", InstanceHelpers.findRootInstancePath( "/root" ));
	Assert.assertEquals( "root", InstanceHelpers.findRootInstancePath( "/root/" ));
	Assert.assertEquals( "root", InstanceHelpers.findRootInstancePath( "//root//" ));
	Assert.assertEquals( "", InstanceHelpers.findRootInstancePath( "/" ));
	Assert.assertEquals( "root", InstanceHelpers.findRootInstancePath( "/root/server/whatever" ));
	Assert.assertEquals( "root", InstanceHelpers.findRootInstancePath( "root/invalid" ));
}