@Test
public void testDiagnoseApplication() throws Exception {

	List<Diagnostic> diags = this.client.getDebugDelegate().diagnoseApplication( "invalid" );
	Assert.assertEquals( 0, diags.size());
	ManagedApplication ma = new ManagedApplication( this.app );
	this.managerWrapper.addManagedApplication( ma );
	diags = this.client.getDebugDelegate().diagnoseApplication( this.app.getName());
	Assert.assertEquals( InstanceHelpers.getAllInstances( this.app ).size(), diags.size());
	for( Diagnostic diag : diags ) {
		Instance inst = InstanceHelpers.findInstanceByPath( this.app, diag.getInstancePath());
		Assert.assertNotNull( inst );
		for( DependencyInformation info : diag.getDependenciesInformation()) {
			Assert.assertFalse( info.isResolved());
		}
	}
}