Bug 160000 [DataBinding] Convert scenarios to official APIs
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/ComboViewerScenario.java
private ComboViewer comboViewer;
    protected void setUp() throws Exception {
        super.setUp();
        
        combo = new Combo(getComposite(), SWT.READ_ONLY | SWT.DROP_DOWN);
        comboViewer = new ComboViewer(combo);
        catalog = SampleData.CATALOG_2005; 
    }
    protected void tearDown() throws Exception {
        combo.dispose();
        combo = null;
        comboViewer = null;
        super.tearDown();
    }
    public void testScenario01() {
        
        comboViewer.setContentProvider(new ObservableListContentProvider());
        comboViewer.setLabelProvider(new LabelProvider() {
            public String getText(Object element) {
                return ((Lodging) element).getName();
            }
        });
        comboViewer.setInput(BeansObservables.observeList(realm, catalog, "lodgings"));
        
        for (int i = 0; i < catalog.getLodgings().length; i++) {
            assertEquals(catalog.getLodgings()[i], comboViewer.getElementAt(i));
        }
        
        
        String[] lodgingStrings = new String[catalog.getLodgings().length];