@Test
public void testPushMetrics() throws Exception {

  ByteArrayOutputStream baos = new ByteArrayOutputStream();
  PrintStream out = new PrintStream(baos);
  StdOutMetricsSender sender = new StdOutMetricsSender("expectedHostName", out);
  sender.pushMetrics("test");
  System.out.println(baos.toString());
}