assertEquals(CloudApplication.AppState.STARTED, app.getState());
waitForStatsAvailable(appName, instanceCount);
ApplicationStats stats = connectedClient.getApplicationStats(appName);
assertNotNull(stats);
assertNotNull(stats.getRecords());
assertEquals(instanceCount, stats.getRecords().size());
for (InstanceStats instanceStats : stats.getRecords()) {
assertNotNull(instanceStats.getUris());
assertNotNull(instanceStats.getHost());
assertTrue(instanceStats.getPort() > 0);
assertTrue(instanceStats.getDiskQuota() > 0);
assertTrue(instanceStats.getMemQuota() > 0);