public static int parseInteger(String str) {
        return isNumber(str) ? Integer.parseInt(str) : 0;
    }
@Test
    void testParseInteger() throws Exception {
        assertThat(StringUtils.parseInteger(null), equalTo(0));
        assertThat(StringUtils.parseInteger("123"), equalTo(123));
    }