@Test
public void testResolveInstance() {

	Assert.assertEquals( "vm", this.context.resolveInstance( "/tomcat-vm" ).getComponent().getName());
	Assert.assertEquals( "tomcat", this.context.resolveInstance( "/tomcat-vm/tomcat-server" ).getComponent().getName());
	Assert.assertNull( this.context.resolveInstance( "/tomcat-vm/invalid" ));
	this.context.instancePathToComponentName.put( "not a path", "whatever" );
	Assert.assertNull( this.context.resolveInstance( "not a path" ));
	Assert.assertNull( this.context.resolveInstance( "" ));
	this.context.instancePathToComponentName.put( "", "vm" );
	Assert.assertNull( this.context.resolveInstance( "" ));
}