public List<JobInfo> getLongestRunning() {
    return Collections.unmodifiableList(mLongestRunning);
  }
@Test
  public void testLongestRunning() {
    Collection<JobInfo> longestRunning = mSummary.getLongestRunning();

    assertEquals("Unexpected length of longest running", 2, longestRunning.size());

    JobInfo[] longestRunningArray = new JobInfo[2];

    longestRunning.toArray(longestRunningArray);

    assertEquals(7, longestRunningArray[0].getId());
    assertEquals(5, longestRunningArray[1].getId());
  }