@PUT
    @Path("enable/{name}")
    @Consumes(MediaType.APPLICATION_JSON)
    @Produces(MediaType.APPLICATION_JSON)
    public Response enableConfig(@PathParam("name") String configName) {
        log.trace(String.format(MESSAGE_CONFIG, UPDATE));

        TelemetryConfig config = configService.getConfig(
                nullIsIllegal(configName, CONFIG_NAME + NOT_NULL_MESSAGE));

        if (config == null) {
            log.warn("There is no config found to enable for {}", configName);
            return Response.notModified().build();
        } else {
            TelemetryConfig updatedConfig = config.updateStatus(ENABLED);
            configService.updateTelemetryConfig(updatedConfig);
            return Response.ok().build();
        }
    }
@Test
    public void testEnableConfig() {
        expect(mockConfigAdminService.getConfig(anyString()))
                .andReturn(telemetryConfig).once();
        mockConfigAdminService.updateTelemetryConfig(telemetryConfig);
        replay(mockConfigAdminService);

        final WebTarget wt = target();
        Response response = wt.path(PATH + "/enable/test1")
                .request(MediaType.APPLICATION_JSON_TYPE)
                .put(Entity.json(""));
        final int status = response.getStatus();

        assertEquals(200, status);

        verify(mockConfigAdminService);
    }