@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(Byte.valueOf((byte)0), pc.convert("0"));
        // min and max value of a byte
        Assert.assertEquals(Byte.valueOf((byte)-128), pc.convert("-128"));
        Assert.assertEquals(Byte.valueOf((byte)127), pc.convert("127"));
        // hex versions
        Assert.assertEquals(Byte.valueOf((byte)0), pc.convert("0x0"));
        Assert.assertEquals(Byte.valueOf((byte)0), pc.convert("0X0"));
        Assert.assertEquals(Byte.valueOf((byte)127), pc.convert("0x7F"));
        Assert.assertEquals(Byte.valueOf((byte)0xFF), pc.convert("0xFF"));
    }
}