}
private void controlReadDoubleValueChange(final DeviceProxy devProx,
final NumberScalarFieldCometeV2 widget, final Double value,
final String attName) throws DevFailed {
final ScalarAttributeListenerImpl listenerTest = new ScalarAttributeListenerImpl();
widget.addScalarAttributeListener(listenerTest);
devProx.write_attribute(new DeviceAttribute(attName, value));
assertTrue("Notification never called",
listenerTest.isLaterNotified("readNumberValueChange", 5000L));
assertTrue("Notification value different from original",
value.equals(listenerTest
.getNotification("readNumberValueChange")));
// v�rifier que le remove du listener est correctement trait�
widget.removeScalarAttributeListener(listenerTest);
listenerTest.reset();
devProx.write_attribute(new DeviceAttribute(attName, value + value));
assertFalse(listenerTest
.isLaterNotified("readNumberValueChange", 5000L));
}