@Test
public void testMetricConfiguredInFilterWithFilterEnabled()
{

    when(archiausPropertyFactory.getBooleanProperty(eq("filter.graphite.metrics"), any(Boolean.class))).thenReturn(DYNAMIC_BOOLEAN_TRUE);
    ConfigurableCodaHaleMetricFilter filter = new ConfigurableCodaHaleMetricFilter(archiausPropertyFactory);
    assertTrue(filter.matches("this.metric.is.allowed", metric));
}