ValidationRulesUtils { public static int getLength(Object object) { return String.valueOf(object).length(); }  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 testGetLength() { assertEquals(0, ValidationRulesUtils.getLength("")); assertEquals(1, ValidationRulesUtils.getLength("a")); assertEquals(5, ValidationRulesUtils.getLength("abcde")); assertEquals(1, ValidationRulesUtils.getLength(1)); assertEquals(5, ValidationRulesUtils.getLength(12345)); }