final CreateConnectionCommand createConnectionCommand = new CreateConnectionCommand();
createConnectionCommand.setConnectionName("newTestConnection");
createConnectionCommand.setConnectionFactoryName("connectionfactory");
sendCommandToClient(createConnectionCommand);
Response response = _controllerQueue.getNext();
assertFalse("Response message should not have indicated an error", response.hasError());
final CreateSessionCommand createSessionCommand = new CreateSessionCommand();
createSessionCommand.setConnectionName("newTestConnection");
createSessionCommand.setSessionName("newTestSession");
createSessionCommand.setAcknowledgeMode(Session.AUTO_ACKNOWLEDGE);
sendCommandToClient(createSessionCommand);
response = _controllerQueue.getNext();
assertFalse("Response message should not have indicated an error", response.hasError());
assertEquals("Unexpected number of test sessions", 1, _clientJmsDelegate.getNoOfTestSessions());
}