assertCommandEquals(commands, 0, CreateSessionCommand.class);
assertCommandEquals(commands, 1, CreateProducerCommand.class);
assertCommandEquals(commands, 2, CreateConsumerCommand.class);
CreateSessionCommand createSessionCommand = getCommand(commands, 0);
assertEquals(Session.AUTO_ACKNOWLEDGE, createSessionCommand.getAcknowledgeMode());
assertEquals(SESSION, createSessionCommand.getSessionName());
assertEquals(CONNECTION_NAME, createSessionCommand.getConnectionName());
}