MetricFilter filter = PatternMetricFilter.parse(new Configs(), config);
assertNotSame(filter, MetricFilter.ALL);
assertTrue(filter.matches("foo", new Counter()));
assertTrue(filter.matches("boo", new Counter()));
assertFalse(filter.matches("foo.bar", new Counter()));
assertFalse(filter.matches("boo", new Timer()));
assertTrue(filter.toString().length() > 0);
}
@Test
public void testNotIncluded() throws Exception {