// We're sending messages to ourselves, so toJID and fromJID are the same.
@SuppressWarnings("UnnecessaryLocalVariable")
JID toJID = fromJID;
MessageBuilder builder = new MessageBuilder();
builder.withMessageType(MessageType.valueOf("CHAT"));
builder.withFromJid(fromJID);
builder.withRecipientJids(toJID);
String testBody = TEST_BODY + System.currentTimeMillis();
builder.withBody(testBody);
builder.asXml(false);