.add("p.include", "foo")
.add("p.include.tags", "foo:f")
.add("p.exclude", "bar")
.add("p.exclude.tags", "bar:b").subset("p");
shouldAccept(c, "foo");
shouldAccept(c, Arrays.asList(new MetricsTag("foo", "", "f")));
shouldAccept(c, mockMetricsRecord("foo", Arrays.asList(
new MetricsTag("foo", "", "f"))));
shouldReject(c, "bar");
shouldReject(c, Arrays.asList(new MetricsTag("bar", "", "b")));
shouldReject(c, mockMetricsRecord("bar", Arrays.asList(
new MetricsTag("foo", "", "f"))));
shouldReject(c, mockMetricsRecord("foo", Arrays.asList(
new MetricsTag("bar", "", "b"))));
shouldAccept(c, "foobar");
shouldAccept(c, Arrays.asList(new MetricsTag("foobar", "", "")));
shouldAccept(c, mockMetricsRecord("foobar", Arrays.asList(
new MetricsTag("foobar", "", ""))));
}