@Test(expected=MetricsException.class) public void testRegisterDupError() {

  MetricsSystem ms = new MetricsSystemImpl("test");
  TestSource ts = new TestSource("ts");
  ms.register(ts);
  ms.register(ts);
}