Shell shell = new BaseShell();
CommandQueue commands = new CommandQueue();
AsyncShell asyncShell = new AsyncShell(commands, shell);
BaseProcessContext ctx = BaseProcessContext.create(asyncShell, "foo");
asyncShell.close();
ctx.execute();
assertEquals(Status.TERMINATED, ((AsyncProcess)ctx.getProcess()).getStatus());
assertEquals(ShellResponse.Cancelled.class, ctx.getResponse().getClass());
assertEquals(0, commands.getSize());
}