@Test
public void testParseNumber() throws Exception {

    assertEquals(new Integer(1), NumberUtils.parseNumber("1", Integer.class));
    assertEquals(new Byte("1"), NumberUtils.parseNumber("1", Byte.class));
    assertEquals(new Float(1.1), NumberUtils.parseNumber("1.1", Float.class));
    assertEquals(new Double(1.1), NumberUtils.parseNumber("1.1", Double.class));
    assertEquals(new Long(1), NumberUtils.parseNumber("1", Long.class));
    assertEquals(new Short("1"), NumberUtils.parseNumber("1", Short.class));
    assertEquals(new BigInteger("1"), NumberUtils.parseNumber("1", BigInteger.class));
}