Bug 198904 [DataBinding] Listeners in swt Observables are not removed on dispose
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/internal/swt/SpinnerObservableValueTest.java
public void testSetValueSelection() throws Exception {
        Shell shell = new Shell();
        Spinner spinner = new Spinner(shell, SWT.NONE);
        SpinnerObservableValue observableValue = new SpinnerObservableValue(spinner, SWTProperties.SELECTION);
        
        assertEquals(0, spinner.getSelection());
        assertEquals(0, ((Integer) observableValue.getValue()).intValue());
        
        Integer value = new Integer(1);
        observableValue.setValue(value);
        assertEquals("spinner selection", value.intValue(), spinner.getSelection());
        assertEquals("observable value", value, observableValue.getValue());
        shell.dispose();
    }
}