public static int toInt(String str) {
        return toInt(str, 0);
    }
@Test
    void testTestToInt() {
        assertEquals(1, NumberUtils.toInt(null, 1));
        assertEquals(1, NumberUtils.toInt("", 1));
        assertEquals(1, NumberUtils.toInt("1", 0));
    }