BasicInformational extends AbstractMonitor<String> implements Informational { public void setValue(String value) { info.set(value); } BasicInformational(MonitorConfig config); void setValue(String value); @Override String getValue(int pollerIndex); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testEqualsSet() throws Exception { BasicInformational c1 = newInstance("foo"); BasicInformational c2 = newInstance("foo"); assertEquals(c1, c2); c1.setValue("bar"); assertNotEquals(c1, c2); c2.setValue("bar"); assertEquals(c1, c2); }