DoubleTypeConverter extends DoublePrimitiveTypeConverter { @Override public Object convert(String value) throws ConversionException { return (Double)super.convert(value); }  @Override Object convert(String value);  }
@Test public void validConversions() throws Exception { for (TypeConverter pc : pcs) { Object obj = pc.convert("0"); Assert.assertEquals(obj, TypeConverterUtil.convert("0", obj.getClass())); Assert.assertEquals(Double.valueOf(0), pc.convert("0")); Assert.assertEquals(Double.valueOf(0), pc.convert("0.0")); Assert.assertEquals(Double.valueOf(1.14d), pc.convert("1.14")); Assert.assertEquals(Double.valueOf(-2147483648), pc.convert("-2147483648")); Assert.assertEquals(Double.valueOf(2147483647), pc.convert("2147483647")); } }