@Test
public void validConversions() throws Exception {

    for (TypeConverter pc : pcs) {
        // check that the registry has this class
        Object obj = pc.convert("0");
        Assert.assertEquals(obj, TypeConverterUtil.convert("0", obj.getClass()));
        Assert.assertEquals(Integer.valueOf(0), pc.convert("0"));
        // min and max  value of an integer
        Assert.assertEquals(Integer.valueOf(-2147483648), pc.convert("-2147483648"));
        Assert.assertEquals(Integer.valueOf(2147483647), pc.convert("2147483647"));
        // hex versions
        Assert.assertEquals(Integer.valueOf(0), pc.convert("0x0"));
        Assert.assertEquals(Integer.valueOf(0), pc.convert("0X0"));
        Assert.assertEquals(Integer.valueOf(2147483647), pc.convert("0x7FFFFFFF"));
        Assert.assertEquals(Integer.valueOf(0xFFFFFFFF), pc.convert("0xFFFFFFFF"));
    }
}