public void stompConnectTo(String host, int port) throws Exception {
StompConnection stompConnection = new StompConnection();
stompConnection.open(createSocket(host, port));
stompConnection.sendFrame("CONNECT\n" + "\n" + Stomp.NULL);
StompFrame f = stompConnection.receive();
TestCase.assertEquals(f.getBody(), "CONNECTED", f.getAction());
stompConnection.close();
}
}