@Test
 public void testContainerNotFound() throws IOException, YarnException {

  ApplicationId appId = ApplicationId.newInstance(0, 1);
  ApplicationAttemptId appAttemptId =
      ApplicationAttemptId.newInstance(appId, 1);
  ContainerId containerId = ContainerId.newContainerId(appAttemptId,
      MAX_APPS + 1);
  GetContainerReportRequest request =
      GetContainerReportRequest.newInstance(containerId);
  try {
  @SuppressWarnings("unused")
  GetContainerReportResponse response =
      clientService.getContainerReport(request);
  } catch (ContainerNotFoundException e) {
    //This exception is expected
    Assert.assertTrue(e.getMessage().contains(
        "doesn't exist in the timeline store"));
  }  catch (Exception e) {
     Assert.fail("Undesired exception caught");
  }
}