assertNull("null record", rb.getRecord());
assertEquals("no records", 0, mb.getRecords().size());
}
@Test public void testPerMetricFiltering() {
SubsetConfiguration fc = new ConfigBuilder()
.add("p.exclude", "foo").subset("p");
MetricsCollectorImpl mb = new MetricsCollectorImpl();
mb.setMetricFilter(newGlobFilter(fc));
MetricsRecordBuilderImpl rb = mb.addRecord("foo");
rb.tag(info("foo", ""), "").addCounter(info("c0", ""), 0)