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
}
				return true;
			}
			public void setReturnValue(Object object) {
				returnValue = object;
			}
			public Object getReturnValue() {
				return returnValue;
			}
		}
		List previousCallHistory = null;
		List currentCallHistory = new ArrayList();
		private final boolean ordered;
		private final EqualityComparator equalityComparator;
		public MockInvocationHandler(boolean ordered,
				EqualityComparator equalityComparator) {
			this.ordered = ordered;
			this.equalityComparator = equalityComparator;
		}
		public Object invoke(Object proxy, Method method, Object[] args)
				throws Throwable {
			if (getMockInvocationHandlerMethod.equals(method)) {
				return this;
			}
			if (equalsMethod.equals(method)) {
				return new Boolean(proxy == args[0]);
			}
			MethodCall methodCall = new MethodCall(method, args);
			if (previousCallHistory != null) {