EntityConfigResource extends AbstractBrooklynRestResource implements EntityConfigApi { @Override public Object get(String application, String entityToken, String configKeyName, Boolean raw) { return get(true, application, entityToken, configKeyName, raw); }  @Override List<ConfigSummary> list(final String application, final String entityToken); @Override Map<String, Object> batchConfigRead(String application, String entityToken, Boolean raw); @Override Object get(String application, String entityToken, String configKeyName, Boolean raw); @Override String getPlain(String application, String entityToken, String configKeyName, Boolean raw); Object get(boolean preferJson, String application, String entityToken, String configKeyName, Boolean raw); @SuppressWarnings({ "rawtypes", "unchecked" }) @Override void setFromMap(String application, String entityToken, Boolean recurse, Map newValues); @SuppressWarnings({ "rawtypes", "unchecked" }) @Override void set(String application, String entityToken, String configName, Boolean recurse, Object newValue);  }
@Test public void testGetJson() throws Exception { String configValue = client().path( URI.create("/applications/simple-app/entities/simple-ent/config/install.version")) .accept(MediaType.APPLICATION_JSON_TYPE) .get(String.class); assertEquals(configValue, "\"1.0.0\""); }