@Test
public void testCleanupContainerEvent()
    throws IllegalArgumentException, IllegalAccessException, IOException {

  Map<ContainerId, ContainerLaunch> dummyMap = Collections
      .synchronizedMap(new HashMap<ContainerId, ContainerLaunch>());
  dummyMap.put(containerId, containerLaunch);
  Whitebox.setInternalState(spy, "running", dummyMap);
  when(event.getType())
      .thenReturn(ContainersLauncherEventType.CLEANUP_CONTAINER);
  assertEquals(1, dummyMap.size());
  spy.handle(event);
  assertEquals(0, dummyMap.size());
  Mockito.verify(containerLauncher, Mockito.times(1))
      .submit(Mockito.any(ContainerCleanup.class));
}