ObjectHelper { public static boolean isEmpty(Object object) { return object == null || object.toString().trim().length() == 0; }  static boolean isEmpty(Object object); static boolean isTransientId(Class<T> clazz, Field field);  }
@Test public void isEmpty() { Assert.assertTrue(ObjectHelper.isEmpty(null)); Assert.assertTrue(ObjectHelper.isEmpty("")); Assert.assertFalse(ObjectHelper.isEmpty(new Object())); }