@Test
public void testDiagnoseInstance() throws Exception {

	String path = InstanceHelpers.computeInstancePath( this.app.getWar());
	ManagedApplication ma = new ManagedApplication( this.app );
	this.managerWrapper.addManagedApplication( ma );
	Diagnostic diag = this.client.getDebugDelegate().diagnoseInstance( this.app.getName(), path );
	Assert.assertNotNull( diag );
	Assert.assertEquals( path, diag.getInstancePath());
	Assert.assertEquals( 1, diag.getDependenciesInformation().size());
}