@Test
public void getAllMetrics() 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();
	servlet.doGet(new MockHttpServletRequest(), resp);
	assertEquals("[" +
			"{\"name\":\"foo\",\"tags\":{\"bar\":\"baz\"},\"values\":{\"count\":1}}," +
			"{\"name\":\"qux\",\"tags\":{\"quux\":\"foo\"},\"values\":{\"count\":1}}" +
			"]", resp.getContentAsString());
}