sync(true);
// Check the result
checkGauge(expected);
assertEquals(1, notifications.size());
MonitorNotification n = (MonitorNotification) notifications.get(0);
notifications.clear();
assertEquals(monitorName, n.getSource());
assertEquals(monitoredName, n.getObservedObject());
assertEquals("Value", n.getObservedAttribute());
assertEquals(type, n.getType());
assertEquals(expected, n.getDerivedGauge());
n = serializeDeserialize(n);
assertEquals(monitorName, n.getSource());
assertEquals(monitoredName, n.getObservedObject());
assertEquals("Value", n.getObservedAttribute());
assertEquals(type, n.getType());
assertEquals(expected, n.getDerivedGauge());
}