Thread.sleep(5000);
assert !agent1.getClientCommandSender().isSending() : "we should have been able to turn off the InitializeCallback/connectAgent should therefore not have triggered our listener and started the sender";
assert agent2.getClientCommandSender().isSending() : "Should have already started the sender";
// our canary-in-the-mine is the sending mode, the sender goes into sending mode when it detects the server
IdentifyCommand command = new IdentifyCommand();
CommandResponse response;
response = agent2.getClientCommandSender().sendSynch(command);
assert response.isSuccessful() : "agent2 should have been able to send to agent1: " + response;
assert agent1.getClientCommandSender().isSending() : "agent2 message should have started agent1 sender";