### Question:
ConditionUtils { public static <T> boolean checkAllNull(T... objs) { for (T t : objs) { if (t != null) { return false; } } return true; } private  ConditionUtils(); static boolean checkAllNotNull(T... objs); static boolean checkAllNull(T... objs);  }### Answer:
@Test public void testCheckAllNull() { Assert.assertTrue(ConditionUtils.checkAllNull(new String[]{})); Assert.assertTrue(ConditionUtils.checkAllNull(new String[]{null, null})); Assert.assertFalse(ConditionUtils.checkAllNull(new String[]{"", null})); Assert.assertFalse(ConditionUtils.checkAllNull(new String[]{"foo", null})); Assert.assertFalse(ConditionUtils.checkAllNull(new String[]{null, ""})); Assert.assertFalse(ConditionUtils.checkAllNull(new String[]{null, "foo"})); Assert.assertFalse(ConditionUtils.checkAllNull(new String[]{"", ""})); Assert.assertFalse(ConditionUtils.checkAllNull(new String[]{"foo", "bar"})); }