@Override
  public ApplicationReport getApplication(ApplicationId appId)
      throws IOException {
    return convertToApplicationReport(historyStore.getApplication(appId));
  }
@Test
  void testApplicationReport() throws IOException, YarnException {
    ApplicationId appId = null;
    appId = ApplicationId.newInstance(0, 1);
    writeApplicationStartData(appId);
    writeApplicationFinishData(appId);
    ApplicationAttemptId appAttemptId =
        ApplicationAttemptId.newInstance(appId, 1);
    writeApplicationAttemptStartData(appAttemptId);
    writeApplicationAttemptFinishData(appAttemptId);
    ApplicationReport appReport =
        applicationHistoryManagerImpl.getApplication(appId);
    assertNotNull(appReport);
    assertEquals(appId, appReport.getApplicationId());
    assertEquals(appAttemptId,
        appReport.getCurrentApplicationAttemptId());
    assertEquals(appAttemptId.toString(), appReport.getHost());
    assertEquals("test type", appReport.getApplicationType().toString());
    assertEquals("test queue", appReport.getQueue().toString());
  }