AdjunctResource extends AbstractBrooklynRestResource implements AdjunctApi { @Override public Status getStatus(String application, String entityToken, String adjunctId) { return AdjunctTransformer.inferStatus( brooklyn().getAdjunct(application, entityToken, adjunctId) ); }  @Override List<AdjunctSummary> list(String application, String entityToken, String adjunctType); @SuppressWarnings({ "rawtypes", "unchecked" }) @Override AdjunctDetail addAdjunct(String application, String entityToken, String adjunctTypeName, Map<String, String> config); @Override AdjunctDetail get(String application, String entityToken, String adjunctId); @Override Status getStatus(String application, String entityToken, String adjunctId); @Override Response start(String application, String entityToken, String adjunctId); @Override Response stop(String application, String entityToken, String adjunctId); @Override Response destroy(String application, String entityToken, String adjunctId); @Override List<ConfigSummary> listConfig(
            final String application, final String entityToken, final String adjunctToken); @Override Map<String, Object> batchConfigRead(String application, String entityToken, String adjunctToken); @Override String getConfig(String application, String entityToken, String adjunctToken, String configKeyName); @SuppressWarnings({ "unchecked", "rawtypes" }) @Override Response setConfig(String application, String entityToken, String adjunctToken, String configKeyName, Object value); @Override List<TaskSummary> listTasks(String applicationId, String entityId, String adjunctToken, int limit, Boolean recurse); @Override Response getIcon(String applicationId, String entityId, String adjunctToken);  }
@Test(dependsOnMethods = "testGetDefaultValue") public void testReconfigureConfig() throws Exception { String configName = RestMockSimplePolicy.SAMPLE_CONFIG.getName(); Response response = client().path(ENDPOINT + policyId + "/config/" + configName) .post(toJsonEntity("newval")); assertEquals(response.getStatus(), Response.Status.OK.getStatusCode()); }