Made collection assertion helper static so that other classes can use it.