public List<JobInfo> getRecentActivities() {
    return Collections.unmodifiableList(mRecentActivities);
  }
@Test
  public void testRecentActivities() {
    Collection<JobInfo> recentActivities = mSummary.getRecentActivities();

    assertEquals("Unexpected length of recent activities", 7, recentActivities.size());

    JobInfo[] recentActvitiesArray = new JobInfo[7];

    recentActivities.toArray(recentActvitiesArray);

    assertEquals(1, recentActvitiesArray[0].getId());
    assertEquals(6, recentActvitiesArray[1].getId());
    assertEquals(5, recentActvitiesArray[2].getId());
    assertEquals(3, recentActvitiesArray[3].getId());
    assertEquals(2, recentActvitiesArray[4].getId());
    assertEquals(4, recentActvitiesArray[5].getId());
    assertEquals(7, recentActvitiesArray[6].getId());
  }