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
assertTrue(value1.hasListeners());
        assertTrue(value2.hasListeners());
        
        
        value2.setValue(new Integer(2));
        
        values.remove(value2);
        
        
        cv.getValue();
        assertEquals(new Integer(1), cv.getValue());
        assertTrue(value1.hasListeners());
        assertFalse("because value2 is not a part of the calculation the listeners should have been removed", value2.hasListeners());
    }
    
    public void testSetValueUnsupportedOperationException() throws Exception {
        ComputedValue cv = new ComputedValue() {
            protected Object calculate() {
                return null;
            }
        };
        
        try {
            cv.setValue(new Object());
            fail("exception should have been thrown");
        } catch (UnsupportedOperationException e) {
        }
    }
}