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
* Creates a mock object that does not look at the arguments, but checks
	 * that the order of calls is as expected.
	 * 
	 * @param interfaceType
	 * @return a mock object that checks for the order of method invocations but
	 *         not for equality of method arguments
	 */
	public static Object createOrderedMock(Class interfaceType) {
		return createMock(interfaceType, true, indifferentEqualityComparator);
	}
	/**
	 * creates a fussy mock object
	 * 
	 * @param interfaceType
	 * @return a mock object that checks for the order of method invocations and
	 *         for equality of method arguments
	 */
	public static Object createMock(Class interfaceType) {
		return createMock(interfaceType, true, defaultEqualityComparator);
	}
	/**
	 * creates a fussy mock object with a comparator
	 * 
	 * @param interfaceType
	 * @return a mock object that checks for the order of method invocations and
	 *         uses the given comparator to compare method arguments
	 */
	public static Object createMock(Class interfaceType,
			EqualityComparator equalityComparator) {
		return createMock(interfaceType, true, equalityComparator);