ValidateUtil { public static boolean isNull(String str){ if (str == null || str.trim().length() == 0) return true; return false; }  static boolean isNull(String str);  }
@Test public void isNullTest(){ assertEquals(ValidateUtil.isNull(null), true); assertEquals(ValidateUtil.isNull(""), true); assertEquals(ValidateUtil.isNull("somestr"), false); }