public static <E> ListSizeMatcher<E> inList(List<E> list) {
    return new ListSizeMatcher<E>(list);
  }
Helper class that lets you check the size and return the list in one line.

@param <E>
ql/src/test/org/apache/hadoop/hive/ql/parse/authorization/AuthorizationTestUtil.java