@Test
public void testNull() throws InterruptedException {

    TimeMetricLevelFilter filter = new TimeMetricLevelFilter(null);
    MetricName name = new MetricName("test", MetricLevel.NORMAL);
    Assert.assertTrue(filter.matches(name, null));
    TimeUnit.SECONDS.sleep(2);
    Assert.assertTrue(filter.matches(name, null));
}