@Test(timeout = 50000)
public void testLogAggregationAbsentContainer() throws Exception {

  ApplicationId appId = createApplication();
  LogAggregationService logAggregationService =
      createLogAggregationService(appId,
          FailedOrKilledContainerLogAggregationPolicy.class, null);
  ApplicationAttemptId appAttemptId1 =
      BuilderUtils.newApplicationAttemptId(appId, 1);
  ContainerId containerId = BuilderUtils.newContainerId(appAttemptId1, 2l);
  logAggregationService.handle(new LogHandlerContainerFinishedEvent(
      containerId, ContainerType.APPLICATION_MASTER, 100));
}