public static int toInt(String val) {
        return toInt(val, 0);
    }
@Test
    void testToInt() {
        // ConvertUtils.toInt(String)
        assertEquals(0, ConvertUtils.toInt("0"));
        assertEquals(-1, ConvertUtils.toInt("-1"));
        assertEquals(10, ConvertUtils.toInt("10"));
        assertEquals(Integer.MAX_VALUE, ConvertUtils.toInt(String.valueOf(Integer.MAX_VALUE)));
        assertEquals(Integer.MIN_VALUE, ConvertUtils.toInt(String.valueOf(Integer.MIN_VALUE)));
        assertEquals(0, ConvertUtils.toInt("notIntValue"));
        
        // ConvertUtils.toInt(String, Integer)
        assertEquals(0, ConvertUtils.toInt("0", 100));
        assertEquals(100, ConvertUtils.toInt(null, 100));
        assertEquals(100, ConvertUtils.toInt("null", 100));
        assertEquals(100, ConvertUtils.toInt("notIntValue", 100));
    }