### Question:
Util { public static <T> List<List<T>> split(List<T> lst, int count) { List<List<T>> lstRs = new ArrayList<>(); List<T> countLst = new ArrayList<>(count); for (T t : lst) { if (countLst.size() == count) { lstRs.add(countLst); countLst = new ArrayList<>(count); } countLst.add(t); } if (countLst.size() > 0) { lstRs.add(countLst); } return lstRs; }  static Integer getProcessId(); static String formateDate(Date date, String formate); static String formateDate(Date date); static void sleep(long millisecondes); static List<List<T>> split(List<T> lst, int count); static boolean isEmpty(String str); final static String SSS_FORMATE; }### Answer:
@Test public void splitTest() { List<Integer> data = Arrays.asList(1, 2, 3, 4, 5, 6); assertEquals(3, Util.split(data, 2).size()); assertEquals(2, Util.split(data, 3).size()); assertEquals(2, Util.split(data, 4).size()); data = new ArrayList<Integer>(); assertEquals(0, Util.split(data, 1).size()); }