final XMLPacket stanza = XMLBuilder.fromXML("<message to='test1@localhost' " + "from='room@conference.localhost' xmlns='jabber:client' "
+ "type='normal'><x xmlns='http://jabber.org/protocol/muc#user'>" + "<invite from='test1@localhost/emite-1291918896669'><reason />"
+ "</invite></x><x jid='room@conference.localhost' " + "xmlns='jabber:x:conference' />"
+ "<body>test1@localhost/emite-1291918896669 invites you to the room room@conference.localhost</body></message>");
final ChatProperties properties = strategy.extractProperties(new Message(stanza));
assertFalse(properties.shouldCreateNewChat());
}
@Test
public void shouldNotInitiateCreationWhenNotBody() {
final ChatProperties properties = strategy.extractProperties(new Message((String) null));