@Test
public void simpleConversions() {

    Object obj = converter.convertFromString(int.class.getCanonicalName(),"10");
    assertEquals("Int conversion",10,obj);
    obj = converter.convertFromString(Integer.class.getCanonicalName(),"10");
    assertEquals("Integer conversion",10,obj);
    obj = converter.convertFromString(Short.class.getCanonicalName(),"10");
    assertEquals("Short conversion",(short) 10,obj);
    obj = converter.convertFromString(short.class.getCanonicalName(),"10");
    assertEquals("short conversion",Short.parseShort("10"),obj);
    obj = converter.convertFromString(Long.class.getCanonicalName(),"10");
    assertEquals("long conversion",10L,obj);
    obj = converter.convertFromString(long.class.getCanonicalName(),"10");
    assertEquals("Long conversion",10L,obj);
    obj = converter.convertFromString(Byte.class.getCanonicalName(),"10");
    assertEquals("Byte conversion",(byte) 10,obj);
    obj = converter.convertFromString(byte.class.getCanonicalName(),"10");
    assertEquals("byte conversion",Byte.parseByte("10"),obj);
    obj = converter.convertFromString(Float.class.getCanonicalName(),"10.5");
    assertEquals("Float conversion",10.5f,obj);
    obj = converter.convertFromString(float.class.getCanonicalName(),"21.3");
    assertEquals("float conversion",new Float(21.3f),obj);
    obj = converter.convertFromString(Double.class.getCanonicalName(),"10.5");
    assertEquals("Double conversion",10.5d,obj);
    obj = converter.convertFromString(double.class.getCanonicalName(),"21.3");
    assertEquals("double conversion",21.3d,obj);
    obj = converter.convertFromString(BigDecimal.class.getCanonicalName(),"83.4e+4");
    assertEquals("BigDecimal conversion", new BigDecimal("8.34e+5"), obj);
    obj = converter.convertFromString(BigInteger.class.getCanonicalName(),"47110815471108154711");
    assertEquals("BigInteger conversion", new BigInteger("47110815471108154711"), obj);
    obj = converter.convertFromString(Boolean.class.getCanonicalName(),"false");
    assertEquals("Boolean conversion",false,obj);
    obj = converter.convertFromString(boolean.class.getCanonicalName(),"true");
    assertEquals("boolean conversion",true,obj);
    obj = converter.convertFromString(char.class.getCanonicalName(),"a");
    assertEquals("Char conversion",'a',obj);
    obj = converter.convertFromString("java.lang.String","10");
    assertEquals("String conversion","10",obj);
}