Bug 146435 [DataBinding] Mocks InvocationHandler throws an exception when returning primitive type
The InvocationHandler in the Mocks class attempts to return a new type via Class.newInstance for primitives which throws an InstantiationException.
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/util/Mocks.java
}
		public void replay() {
			previousCallHistory = currentCallHistory;
			currentCallHistory = new ArrayList();
		}
		public void verify() {
			if (previousCallHistory == null) {
				if (currentCallHistory.size() == 0) {
					
					return;
				}
				throw new AssertionFailedError("unexpected");
			}
			if (ordered) {
				int numMissingCalls = previousCallHistory.size()
						- currentCallHistory.size();
				if (numMissingCalls > 0) {
					throw new AssertionFailedError("missing method calls ("
							+ numMissingCalls + ")");
				}
				for (int i = 0; i < previousCallHistory.size(); i++) {
					if (!previousCallHistory.get(i).equals(
							currentCallHistory.get(i))) {
						throw new AssertionFailedError(
								"method call did not match (" + i + " of "
										+ currentCallHistory.size() + ")");
					}
				}
			} else {
				for (Iterator it = previousCallHistory.iterator(); it.hasNext();) {