Bug 166600 [DataBinding] Refactor tests to be in the correct packages
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/ComputedValueTest.java
public WritableValueExt(Object valueType, Object initialValue) {
            super(initialValue, valueType);
        }
        public boolean hasListeners() {
            return super.hasListeners();
        }
    }
    public void testHookAndUnhookDependantObservables() throws Exception {
        final List values = new ArrayList();
        ComputedValue cv = new ComputedValue() {
            protected Object calculate() {
                int sum = 0;
                for (Iterator it = values.iterator(); it.hasNext();) {
                    WritableValue value = (WritableValue) it.next();
                    sum += ((Integer) value.getValue()).intValue();
                }
                return new Integer(sum);
            }
        };
        WritableValueExt value1 = new WritableValueExt(Integer.TYPE, new Integer(1));
        WritableValueExt value2 = new WritableValueExt(Integer.TYPE, new Integer(1));
        values.add(value1);
        values.add(value2);
        
        assertFalse(value1.hasListeners());
        assertFalse(value2.hasListeners());
        cv.getValue();