Metric { public MonitorConfig getConfig() { return config; } Metric(String name, TagList tags, long timestamp, Object value);  Metric(MonitorConfig config, long timestamp, Object value); MonitorConfig getConfig(); long getTimestamp(); Object getValue(); Number getNumberValue(); boolean hasNumberValue(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void testNullTags() throws Exception { long now = System.currentTimeMillis(); Metric m = new Metric("a", null, now, 42); assertEquals(m.getConfig(), new MonitorConfig.Builder("a").build()); }