public static String nullToEmpty(String str) {
        return str == null ? "" : str;
    }
@Test
    public void nullToEmpty() {
        String string = "null";
        Assert.assertEquals("null", StringUtil.nullToEmpty(string));
    }