@Test
public void testFailedExitCleanup() throws Exception {

  launch.completed.set(true);
  cleanup.run();
  ArgumentCaptor<ContainerSignalContext> captor =
      ArgumentCaptor.forClass(ContainerSignalContext.class);
  verify(executor, Mockito.times(1)).signalContainer(captor.capture());
  Assert.assertEquals("signal", ContainerExecutor.Signal.TERM,
      captor.getValue().getSignal());
}