@Test
public void testCreateMetricDisable() {

    Class<?> expected = NoOpMetric.class;
    setProperty(PrometheusMetricFactory.ENABLE_PROP, "false");
    Metric metric = new PrometheusMetricFactory().create();
    clearProperty(PrometheusMetricFactory.ENABLE_PROP);
    // assertions
    Assert.assertEquals(metric.getClass(), expected);
}