List<ApplicationSummary> apps = response.getResult();
Assert.assertFalse(apps.isEmpty(), "No apps returned from public and private query");
ApplicationSummary appSummary = apps.get(0);
SingleApplicationResponse appResponse = api.get(appSummary.getId());
Application app = appResponse.getResult();
Assert.assertNotNull(app, "Named app not returned from api");
} catch (ApiException e) {
Assert.fail("Failed to query all apps", e);
}