DeployerProxy extends AbstractProxy { public String getEntitySensorsValue(String brooklynId, String brooklynEntityId, String sensorId) throws IOException { Invocation invocation = getJerseyClient().target( getEndpoint() + "/v1/applications/" + brooklynId + "/entities/" + brooklynEntityId + "/sensors/" + sensorId + "?raw=true") .request().buildGet(); return invocation.invoke().readEntity(String.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 testGetEntitySensorsValue() throws Exception { getMockWebServer().enqueue(new MockResponse() .setBody("0.7") .setHeader("Accept", MediaType.APPLICATION_JSON) .setHeader("Content-Type", MediaType.APPLICATION_JSON) ); String response = getProxy().getEntitySensorsValue(RANDOM_STRING, RANDOM_STRING, RANDOM_STRING); assertEquals("0.7", response); }