Bug 17256 Exception due to bug 17208
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/internal/databinding/provisional/validation/ObjectToPrimitiveValidatorTest.java
private ObjectToPrimitiveValidator objectToPrimitiveValidator;
	protected void setUp() throws Exception {
		this.objectToPrimitiveValidator = new ObjectToPrimitiveValidator(
				Integer.TYPE);
	}
	/**
	 * Test method for
	 * {@link org.eclipse.jface.internal.databinding.provisional.validation.ObjectToPrimitiveValidator#isValid(java.lang.Object)}.
	 */
	public void testIsValid() {
		IStatus result = this.objectToPrimitiveValidator.validate(null);
		assertEquals("The wrong validation error was found.", result
				.getMessage(), this.objectToPrimitiveValidator.getNullHint());
		result = this.objectToPrimitiveValidator.validate(new Integer(1));
		assertTrue("No validation error should be found.", result.isOK());
		result = this.objectToPrimitiveValidator.validate(new Object());
		assertEquals("The wrong validation error was found.", result
				.getMessage(), this.objectToPrimitiveValidator.getClassHint());
	}
}