### Question:
DataTypeInteger extends DataTypeBase<BigInteger> { @Override public BigInteger convert(Object source) throws DataTypeException { if (source == null || (source instanceof BigInteger)) { return (BigInteger)source; } else if (source instanceof Integer) { return new BigInteger(source.toString()); } else { String stringValue = this.convertToString(source); BigInteger intValue = null; try { intValue = new BigInteger(stringValue); } catch (NumberFormatException ex) { throw new DataTypeException(this, "Failed to convert from \"" + source.getClass().getCanonicalName() + "\" with value \"" + stringValue + "\" to integer", ex); } return intValue; } } private  DataTypeInteger(); static DataTypeInteger newInstance(); @Override BigInteger convert(Object source);  }### Answer:
@Test(expected = DataTypeException.class) public void testParse() throws DataTypeException { DataTypes.DT_INTEGER.convert("foo"); }