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
InvocationHandler {
		private class MethodCall {
			private final Method method;
			private final Object[] args;
			private Object returnValue = null;
			public MethodCall(Method method, Object[] args) {
				this.method = method;
				this.args = args;
			}
			public boolean equals(Object obj) {
				if (!(obj instanceof MethodCall)) {
					return false;
				}
				MethodCall other = (MethodCall) obj;
				if (other.method != method
						|| (other.args == null && args != null)
						|| (other.args != null && args == null)
						|| (args != null && other.args.length != args.length)) {
					return false;
				}
				if (args != null) {
					for (int i = 0; i < args.length; i++) {
						if (!equalityComparator.equals(args[i], other.args[i])) {
							return false;
						}
					}