@Test
public void castToBigInteger() {

    assertEquals(BigInteger.valueOf(10), TypeUtils.castToBigInteger(Short.valueOf("10")));
    assertEquals(BigInteger.valueOf(10), TypeUtils.castToBigInteger(BigInteger.valueOf(10)));
    assertEquals(BigInteger.valueOf(10), TypeUtils.castToBigInteger("10"));
    assertEquals(BigInteger.valueOf(10), TypeUtils.castToBigInteger("10", BigInteger.valueOf(10)));
    assertEquals(BigInteger.valueOf(10), TypeUtils.castToBigInteger(null, BigInteger.valueOf(10)));
}