public static boolean isCollection(Object obj) {
    return obj instanceof Collection || obj instanceof Map;
  }
@Test
  public void isCollection() {
    assertTrue(CommonUtils.isCollection(Sets.newHashSet()));
    assertTrue(CommonUtils.isCollection(Maps.newHashMap()));
    assertTrue(CommonUtils.isCollection(Lists.newArrayList()));
    assertFalse(CommonUtils.isCollection(null));
    assertFalse(CommonUtils.isCollection(1));
  }