### Question:
NotificationUtil { public static boolean isObjectEmpty(Object object) { if (object == null) return true; else if (object instanceof String) { if (((String) object).trim().length() == 0) { return true; } } else if (object instanceof Collection) { return isCollectionEmpty((Collection<?>) object); } return false; } private  NotificationUtil(); static boolean isObjectEmpty(Object object);  }### Answer:
@SuppressWarnings("static-access") @Test public void isObjectEmpty1() { NotificationUtil notificationUtil = mock(NotificationUtil.class); assertFalse(notificationUtil.isObjectEmpty(new NotificationUtilTest())); }
@SuppressWarnings("static-access") @Test public void isObjectEmpty2() { NotificationUtil notificationUtil = mock(NotificationUtil.class); assertTrue(notificationUtil.isObjectEmpty(null)); }
@SuppressWarnings("static-access") @Test public void isObjectEmpty3() { NotificationUtil notificationUtil = mock(NotificationUtil.class); assertFalse(notificationUtil.isObjectEmpty("Test")); assertTrue(notificationUtil.isObjectEmpty(new String(""))); Set<String> items = Sets.newHashSet(); assertTrue(notificationUtil.isObjectEmpty(items)); Set<String> items1 = null; assertTrue(notificationUtil.isObjectEmpty(items1)); items.add("addd"); assertFalse(notificationUtil.isObjectEmpty(items)); }