Bug 166600 [DataBinding] Refactor tests to be in the correct packages
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/internal/viewers/SelectionProviderSingleSelectionObservableValueTest.java
* @see junit.framework.TestCase#tearDown()
     */
    protected void tearDown() throws Exception {
        Shell shell = viewer.getTable().getShell();
        if (!shell.isDisposed())
            shell.dispose();
    }
    public void testConstructorIllegalArgumentException() {
        try {
            new SelectionProviderSingleSelectionObservableValue(SWTObservables.getRealm(Display.getDefault()), null);
            fail();
        } catch (IllegalArgumentException e) {
        }
    }
    /**
     * Asserts that when a selection is set on the viewer:
     * <ul>
     * <li>the selection is available in the observable</li>
     * <li>Value change events are fired with appropriate diff values</li>
     * </ul>
     */
    public void testGetSetValue() {
        SelectionProviderSingleSelectionObservableValue observable = new SelectionProviderSingleSelectionObservableValue(
                SWTObservables.getRealm(Display.getDefault()),
                selectionProvider);
        ValueChangeEventTracker listener = new ValueChangeEventTracker();
        observable.addValueChangeListener(listener);
        assertNull(observable.getValue());
        selectionProvider.setSelection(new StructuredSelection(model[0]));
        assertEquals(1, listener.count);