@Test
public void testFromString() throws Exception {

    
    String value;
    
    value = "1";
    Integer integerValue = fromString(Integer.class, value);
    assertEquals(new Integer(1), integerValue);
    
    int intValue = fromString(Integer.TYPE, value);
    assertEquals(1, intValue);
    
    Long wrappedLongValue = fromString(Long.class, value);
    assertEquals(Long.valueOf(1), wrappedLongValue);
    
    long longValue = fromString(Long.TYPE, value);
    assertEquals(1, longValue);
    
    Double wrappedDoubleValue = fromString(Double.class, value);
    assertEquals(Double.valueOf(1), wrappedDoubleValue);
    
    double doubleValue = fromString(Double.TYPE, value);
    assertEquals(1, doubleValue, 0);
    
    Float wrappedFloatValue = fromString(Float.class, value);
    assertEquals(Float.valueOf(1), wrappedFloatValue);
    
    float floatValue = fromString(Float.TYPE, value);
    assertEquals(1, floatValue, 0);
    
    Short shortValue = fromString(Short.class, value);
    assertEquals(Short.valueOf(value), shortValue);
    
    Byte byteValue = fromString(Byte.class, value);
    assertEquals(Byte.valueOf(value), byteValue);
    
    value = "true";
    assertTrue(fromString(Boolean.class, value));
    assertTrue(fromString(Boolean.TYPE, value));
    
    char charValue = fromString(Character.TYPE, "a");
    assertEquals('a', charValue);
    Character characterValue = fromString(Character.class, "a");
    assertEquals(Character.valueOf('a'), characterValue);
    
    BigDecimal bigDecimal = fromString(BigDecimal.class, "2");
    assertEquals(new BigDecimal("2"), bigDecimal);
 
    BigInteger bigInteger = fromString(BigInteger.class, "2");
    assertEquals(new BigInteger("2"), bigInteger);
    
    String stringValue = fromString(String.class, value);
    assertEquals(stringValue, value);
    
}