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 static interface EqualityComparator {
		public boolean equals(Object o1, Object o2);
	}
	private static EqualityComparator defaultEqualityComparator = new EqualityComparator() {
		public boolean equals(Object o1, Object o2) {
			return o1 == null ? o2 == null : o1.equals(o2);
		}
	};
	private static EqualityComparator indifferentEqualityComparator = new EqualityComparator() {
		public boolean equals(Object o1, Object o2) {
			return true;
		}
	};
	private static interface Mock {
		public MockInvocationHandler getMockInvocationHandler();
	}
	private static Method getMockInvocationHandlerMethod;
	private static Method equalsMethod;
	static {
		try {
			getMockInvocationHandlerMethod = Mock.class.getMethod(
					"getMockInvocationHandler", new Class[0]);
			equalsMethod = Object.class.getMethod("equals",
					new Class[] { Object.class });
		} catch (Exception e) {
			
		}
	}
	private static final class MockInvocationHandler implements