public static boolean isNullOrEmpty(Collection<?> collection) {
        return collection == null || collection.isEmpty();
    }
@Test
    public void testIsNullOrEmpty() {
        assertTrue(Tools.isNullOrEmpty(null));
        assertTrue(Tools.isNullOrEmpty(Collections.emptyList()));
    }