@Test
public void defaultIfNull() {

    int[] ia = new int[0];
    Class<?>[] ic = new Class[0];
    String[] is = new String[0];
    String s = "";
    assertSame(ia, ObjectUtil.defaultIfNull(null, ia));
    assertSame(ic, ObjectUtil.defaultIfNull(null, ic));
    assertSame(is, ObjectUtil.defaultIfNull(null, is));
    assertSame(s, ObjectUtil.defaultIfNull(null, s));
    assertSame(s, ObjectUtil.defaultIfNull((Object) null, s));
    assertEquals("123", ObjectUtil.defaultIfNull("123", s));
}