DeployerProxy extends AbstractProxy { public ApplicationSummary getApplication(String brooklynId) throws IOException { Invocation invocation = getJerseyClient().target(getEndpoint() + "/v1/applications/" + brooklynId).request().buildGet(); return invocation.invoke().readEntity(ApplicationSummary.class); }  ApplicationSummary getApplication(String brooklynId); JsonNode getApplicationsTree(); TaskSummary removeApplication(String brooklynId); TaskSummary deployApplication(String tosca); List<EntitySummary> getEntitiesFromApplication(String brooklynId); List<SensorSummary> getEntitySensors(String brooklynId, String brooklynEntityId); String getEntitySensorsValue(String brooklynId, String brooklynEntityId, String sensorId);  }
@Test public void testGetApplication() throws Exception { String json = TestUtils.getStringFromPath(TestFixtures.APPLICATION_PATH); getMockWebServer().enqueue(new MockResponse() .setBody(json) .setHeader("Accept", MediaType.APPLICATION_JSON) .setHeader("Content-Type", MediaType.APPLICATION_JSON) ); assertEquals(ObjectMapperHelpers.JsonToObject(json, ApplicationSummary.class), getProxy().getApplication(RANDOM_STRING)); }