connection = new XmppConnectionBosh(new SimpleEventBus());
}
@Test
public void shouldSendInitialBody() {
connection.setSettings(new ConnectionSettings("localhost"));
connection.connect();
assertEquals(1, services.requestSentCount());
final IsPacketLike matcher = IsPacketLike.build("<body to='localhost' " + "content='text/xml; charset=utf-8' xmlns:xmpp='urn:xmpp:xbosh' "
+ " ack='1' hold='1' secure='true' xml:lang='en' " + "xmpp:version='1.0' wait='60' xmlns='http://jabber.org/protocol/httpbind' />");
assertTrue(matcher.matches(services.getSentPacket(0), System.out));