assert !callback.response.isSuccessful() : "Command wasn't serializable, should have failed: "
+ callback.response;
assert !callback.response.getCommand().getConfiguration().containsKey("rhq.retry") : "Should not have retried at all: "
+ callback.response;
sc.shutdown();
Thread.sleep(2000L); // give the server container time to shutdown
// shutdown listener and try to send - should retry forever due to cannot-connect exception (max-retries will be ignored)
cmd = createNewCommand("forever");
callback = new TestCommandResponseCallback();