private void assertInvalidInputException(String value, DataType dataType, String dataTypeString) { try { dataType.parse(value); fail( "Should have thrown InvalidInputException since '" + value + "' is not a valid " + dataTypeString); } catch (InvalidInputException e) { assertEquals( "value '" + value + "' is not a valid DataType = '" + dataTypeString + "'", e.getMessage()); } }