ValidationRulesUtils { public static boolean isEmpty(Object object) { return object == null || String.valueOf(object).trim().length() < 1; }  static int getLength(Object object); static boolean isEmpty(Object object); static final String DECIMAL_PATTERN; static final String URL_PATTERN; static final int MINDIGITSINPHONE; static final int MAXDIGITSINPHONE; }
@Test public void testIsEmpty() { assertTrue(ValidationRulesUtils.isEmpty(null)); assertTrue(ValidationRulesUtils.isEmpty("")); assertFalse(ValidationRulesUtils.isEmpty("123")); }