@Test
public void castToShort() {

    assertEquals((short) 10, TypeUtils.castToShort(Short.valueOf("10")));
    assertEquals((short) 10, TypeUtils.castToShort(Integer.valueOf("10")));
    assertEquals((short) 10, TypeUtils.castToShort("10"));
    assertEquals((short) 10, TypeUtils.castToShort("10", (short) 10));
    assertEquals((short) 10, TypeUtils.castToShort(null, (short) 10));
}