@Test
public void testGetApplicationNotExists()
    throws YarnException, IOException, InterruptedException {

  LOG.info(
      "Test ApplicationClientProtocol: Get Application Report - Not Exists");
  ApplicationId appId =
      ApplicationId.newInstance(System.currentTimeMillis(), 1);
  GetApplicationReportRequest requestGet =
      GetApplicationReportRequest.newInstance(appId);
  try {
    interceptor.getApplicationReport(requestGet);
    Assert.fail();
  } catch (YarnException e) {
    Assert.assertTrue(e.getMessage().equals(
        "Application " + appId + " does not exist in FederationStateStore"));
  }
}