static int[] toIntArray(List<Integer> list) {
    int[] input = new int[list.size()];
    for (int i = 0; i < list.size(); i++) {
      input[i] = list.get(i);
    }
    return input;
  }
Provides common utilities helpful for testing.
jobdispatcher/src/testLib/com/firebase/jobdispatcher/TestUtil.java