@Override
  public void close() {
    metrics.removeMetric(commandRunnerStatusNumMetricName);
    metrics.removeMetric(commandRunnerDegradedReasonNumMetricName);
    metrics.removeMetric(commandRunnerStatusMetricName);
    metrics.removeMetric(commandRunnerDegradedReasonMetricName);
    metrics.removeMetric(commandRunnerStatusMetricNameLegacy);
    metrics.removeMetric(commandRunnerDegradedReasonMetricNameLegacy);
  }
@Test
  public void shouldRemoveNoneCommandRunnerDegradedReason() {
    // When:
    commandRunnerMetrics.close();

    // Then:
    verify(metrics).removeMetric(METRIC_NAME_1_LEGACY);
    verify(metrics).removeMetric(METRIC_NAME_2_LEGACY);
    verify(metrics).removeMetric(METRIC_NAME_1);
    verify(metrics).removeMetric(METRIC_NAME_2);
    verify(metrics).removeMetric(NUM_METRIC_NAME_1);
    verify(metrics).removeMetric(NUM_METRIC_NAME_2);
  }