public List<JobInfo> getRecentFailures() {
    return Collections.unmodifiableList(mRecentFailures);
  }
@Test
  public void testRecentFailures() {
    Collection<JobInfo> recentFailures = mSummary.getRecentFailures();

    assertEquals("Unexpected length of last activities", 3, recentFailures.size());

    JobInfo[] recentFailuresArray = new JobInfo[3];

    recentFailures.toArray(recentFailuresArray);

    assertEquals(1, recentFailuresArray[0].getId());
    assertEquals(6, recentFailuresArray[1].getId());
    assertEquals(4, recentFailuresArray[2].getId());
  }