Bug 160000 [DataBinding] Convert scenarios to official APIs
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/ComboScenarios.java
List result = new ArrayList();
        if (list == null || list.length == 0)
            return result;
        String getterName = "get" + feature.substring(0, 1).toUpperCase(Locale.ENGLISH) + feature.substring(1);
        try {
            Method getter = list[0].getClass().getMethod(getterName, new Class[0]);
            try {
                for (int i = 0; i < list.length; i++) {
                    result.add(getter.invoke(list[i], new Object[0]));
                }
            } catch (IllegalArgumentException e) {
            } catch (IllegalAccessException e) {
            } catch (InvocationTargetException e) {
            }
        } catch (SecurityException e) {
        } catch (NoSuchMethodException e) {
        }
        return result;
    }
    /**
     * This test case deal with the 3rd scenario, using vanilla bindings: Ensure
     * a valid content and selection are bounded correctly Bind a collection of
     * Lodgings to a ComboViewer Bind the ComboViewer's selection to the
     * defaultLodging of an Adventure
     * 
     * This test does not deal with null values, empty content, changed content,
     * property change of content elements, etc.
     * 
     */
    public void test_ROCombo_Scenario03_vanilla() {