@Test
public void getFilteredMetrics() throws Exception {

	registry.counter(name("foo").tag("bar", "baz").build()).inc();
	registry.counter(name("qux").tag("quux", "foo").build()).inc();
	final MockHttpServletResponse resp = new MockHttpServletResponse();
	final MockHttpServletRequest req = new MockHttpServletRequest();
	req.addParameter("metricNames[]", "foo");
	servlet.doGet(req, resp);
	assertEquals("[{\"name\":\"foo\",\"tags\":{\"bar\":\"baz\"},\"values\":{\"count\":1}}]", resp.getContentAsString());
}