### Question:
ArrayUtils { public static boolean isNullOrEmpty(Collection collection) { return collection == null || collection.isEmpty(); } private  ArrayUtils(); static boolean isNullOrEmpty(Collection collection); static boolean isNullOrEmpty(Map map);  }### Answer:
@Test public void testIsNullOrEmptyCollection() { assertTrue(isNullOrEmpty((Collection) null)); assertTrue(isNullOrEmpty(Collections.emptyList())); ArrayList<Object> list = new ArrayList<>(); assertTrue(isNullOrEmpty(list)); list.add("testObject"); assertFalse(isNullOrEmpty(list)); }
@Test public void testIsNullOrEmptyMap() { assertTrue(isNullOrEmpty((Map) null)); assertTrue(isNullOrEmpty(Collections.emptyMap())); HashMap<String, String> map = new HashMap<>(); assertTrue(isNullOrEmpty(map)); map.put("test", "object"); assertFalse(isNullOrEmpty(map)); }