Bug 160000 [DataBinding] Convert scenarios to official APIs
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/MasterDetailScenarios.java
}
	public void testScenario02() {
		
		
		
		
		
		
		final ListViewer listViewer = new ListViewer(getComposite(), SWT.BORDER);
		listViewer.getList().setLayoutData(
				new GridData(SWT.FILL, SWT.FILL, false, false));
		final Catalog catalog = SampleData.CATALOG_2005;
		listViewer.setLabelProvider(new LabelProvider() {
			public String getText(Object element) {
				return ((Lodging) element).getName();
			}
		});
		listViewer.setContentProvider(new ObservableListContentProvider());
		listViewer.setInput(BeansObservables.observeList(realm, catalog,
				"lodgings"));
		assertArrayEquals(catalog.getLodgings(), getViewerContent(listViewer)
				.toArray());