@Test
public void testGetApplications() throws Exception {

  Collection<ApplicationReport> apps =
      historyManager.getApplications(Long.MAX_VALUE).values();
  Assert.assertNotNull(apps);
  Assert.assertEquals(SCALE + 1, apps.size());
  ApplicationId ignoredAppId = ApplicationId.newInstance(0, SCALE + 2);
  for (ApplicationReport app : apps) {
    Assert.assertNotEquals(ignoredAppId, app.getApplicationId());
  }
}