### Question:
SensorResource extends AbstractBrooklynRestResource implements SensorApi { protected Object get(boolean preferJson, String application, String entityToken, String sensorName, Boolean raw) { final Entity entity = brooklyn().getEntity(application, entityToken); AttributeSensor<?> sensor = findSensor(entity, sensorName); Object value = entity.getAttribute(sensor); return resolving(value).preferJson(preferJson).asJerseyOutermostReturnValue(true).raw(raw).context(entity).timeout(ValueResolver.PRETTY_QUICK_WAIT).renderAs(sensor).resolve(); }  @SuppressWarnings("rawtypes") @Override List<SensorSummary> list(final String application, final String entityToken); @Override Map<String, Object> batchSensorRead(final String application, final String entityToken, final Boolean raw); @Override String getPlain(String application, String entityToken, String sensorName, final Boolean raw); @Override Object get(final String application, final String entityToken, String sensorName, final Boolean raw); @SuppressWarnings({ "rawtypes", "unchecked" }) @Override void setFromMap(String application, String entityToken, Map newValues); @SuppressWarnings({ "rawtypes", "unchecked" }) @Override void set(String application, String entityToken, String sensorName, Object newValue); @Override void delete(String application, String entityToken, String sensorName);  }### Answer:
@Test(dependsOnMethods = "testBatchSensorRead") public void testBatchSensorReadRaw() throws Exception { ClientResponse response = client().resource(SENSORS_ENDPOINT + "/current-state") .queryParam("raw", "true") .accept(MediaType.APPLICATION_JSON) .get(ClientResponse.class); Map<String, ?> currentState = response.getEntity(new GenericType<Map<String,?>>(Map.class) {}); for (String sensor : currentState.keySet()) { if (sensor.equals(SENSOR_NAME)) { assertEquals(currentState.get(sensor), Integer.valueOf(12345)); } } }