// We should have been interrupted
assertTrue(interruptDoCancel);
//
ctx.cancel();
ShellResponse resp = ctx.getResponse();
assertEquals(ShellResponse.Cancelled.class, resp.getClass());
assertTrue(interruptInterrupted);
while (true) {
Boolean b = interrupted.get();