Bug 236605 [DataBinding] Duplicate entries in bound list after update
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/core/tests/internal/databinding/beans/JavaBeanObservableListTest.java
assertPropertyChangeEvent(bean, new Runnable() {
			public void run() {
				list.removeAll(Arrays.asList(new String[] {"0"}));
			}			
		});
	}
	public void testRetailAll() throws Exception {
		List elements = Arrays.asList(new String[] { "0", "1", "2", "3" });
		list.addAll(elements);
		assertEquals(4, bean.getList().size());
		list.retainAll(elements.subList(0, 2));
		assertEquals(2, bean.getList().size());
		assertEquals(elements.get(0), bean.getList().get(0));
		assertEquals(elements.get(1), bean.getList().get(1));
	}
	public void testRetainAllListChangeEvent() throws Exception {
		List elements = Arrays.asList(new String[] { "0", "1", "2", "3" });
		list.addAll(elements);
		ListChangeEventTracker listener = new ListChangeEventTracker();
		list.addListChangeListener(listener);
		assertEquals(0, listener.count);
		list.retainAll(elements.subList(0, 2));
		assertEquals(1, listener.count);
		ListChangeEvent event = listener.event;
		assertEquals(list, event.getObservableList());
		assertEntry(event.diff.getDifferences()[0], false, 2, elements.get(2));
		assertEntry(event.diff.getDifferences()[1], false, 2, elements.get(3));
	}
	
	public void testRetainAllPropertyChangeEvent() throws Exception {