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
MethodCall methodCall = (MethodCall) it.next();
					if (!currentCallHistory.contains(methodCall)) {
						throw new AssertionFailedError("missing method call:"
								+ methodCall.method.getName());
					}
				}
			}
		}
		public void reset() {
			previousCallHistory = null;
			currentCallHistory = new ArrayList();
		}
		public void setLastReturnValue(Object object) {
			MethodCall methodCall = (MethodCall) currentCallHistory
					.get(currentCallHistory.size() - 1);
			methodCall.setReturnValue(object);
		}
	}
	/**
	 * Creates a mock object that neither looks at the order of method calls nor
	 * at the arguments.
	 * 
	 * @param interfaceType
	 * @return a mock object that checks for the order of method invocations but
	 *         not for equality of method arguments
	 */
	public static Object createRelaxedMock(Class interfaceType) {
		return createMock(interfaceType, false, indifferentEqualityComparator);
	}
	/**