Bug 127861 [DataBinding] Mark API provisional
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/databinding/UpdatableCollectionTest.java
List returnedList = collection.getElements();
		assertEquals("The wrong element was found in position 0 of the returned list", string3, returnedList.get(0));
		assertEquals("The wrong element was found in position 1 of the returned list", string4, returnedList.get(1));
		assertEquals("The wrong element was found in position 2 of the returned list", string5, returnedList.get(2));
	}
	private class TestUpdatableCollection extends UpdatableCollection {
		private List elements = new ArrayList();
		
		public int addElement(Object value, int index) {
			elements.add(index, value);
			return index;
		}
		public Object computeElement(int index) {
			return elements.get(index);
		}
		public Class getElementType() {
			return Object.class;
		}
		public int computeSize() {
			return elements.size();
		}
		public void removeElement(int index) {
			elements.remove(index);
		}
		public void setElement(int index, Object value) {
			elements.set(index, value);
		}
	}
}