ContainerDestroyTask extends TaskUtil.Task<Object> { @Override public Environment call() throws Exception { return ( ( EnvironmentContainerImpl ) containerHost ).destroy( false ); } ContainerDestroyTask( final ContainerHost containerHost ); ContainerHost getContainerHost(); @Override Environment call();  }
@Test public void tastCall() throws Exception { task.call(); verify( container ).destroy( false ); }