TestSource s2 = ms.register("s2", "s2 desc", new TestSource("s2rec"));
TestSource s3 = ms.register("s3", "s3 desc", new TestSource("s3rec"));
s1.s1.add(0);
s2.s1.add(0);
s3.s1.add(0);
MetricsSink sink1 = mock(MetricsSink.class);
MetricsSink sink2 = mock(MetricsSink.class);
MetricsSink sink3 = mock(MetricsSink.class);
ms.register("sink1", "sink1 desc", sink1);
ms.register("sink2", "sink2 desc", sink2);
ms.register("sink3", "sink3 desc", sink3);
ms.onTimerEvent(); // trigger something interesting
ms.stop();