### Question:
ServerResource extends AbstractBrooklynRestResource implements ServerApi { @Override public String getConfig(String configKey) { if (!Entitlements.isEntitled(mgmt().getEntitlementManager(), Entitlements.SEE_ALL_SERVER_INFO, null)) { throw WebResourceUtils.unauthorized("User '%s' is not authorized for this operation", Entitlements.getEntitlementContext().user()); } ConfigKey<String> config = ConfigKeys.newStringConfigKey(configKey); return mgmt().getConfig().getConfig(config); }  @Override void reloadBrooklynProperties(); @Override void shutdown(final boolean stopAppsFirst, final boolean forceShutdownOnError,
            String shutdownTimeoutRaw, String requestTimeoutRaw, String delayForHttpReturnRaw,
            Long delayMillis); @Override VersionSummary getVersion(); @Override boolean isUp(); @Override boolean isShuttingDown(); @Override boolean isHealthy(); @Override Map<String,Object> getUpExtended(); @Deprecated @Override String getStatus(); @Override String getConfig(String configKey); @Deprecated @Override HighAvailabilitySummary getHighAvailability(); @Override ManagementNodeState getHighAvailabilityNodeState(); @Override ManagementNodeState setHighAvailabilityNodeState(HighAvailabilityMode mode); @Override Map<String, Object> getHighAvailabilityMetrics(); @Override long getHighAvailabitlityPriority(); @Override long setHighAvailabilityPriority(long priority); @Override HighAvailabilitySummary getHighAvailabilityPlaneStates(); @Override Response clearHighAvailabilityPlaneStates(); @Override String getUser(); @Override Response exportPersistenceData(String preferredOrigin);  }### Answer:
@Test void testGetConfig() throws Exception { ((ManagementContextInternal)getManagementContext()).getBrooklynProperties().put("foo.bar.baz", "quux"); try { assertEquals(client().resource("/v1/server/config/foo.bar.baz").get(String.class), "quux"); } finally { ((ManagementContextInternal)getManagementContext()).getBrooklynProperties().remove("foo.bar.baz"); } }