);
}
@Test
public void deserialize3() throws JsonParseException, SerializationException, IOException, ParseException{
WampMessage msg = WampMessageDeserializer.deserialize(serializer.getObjectMapper().getJsonFactory().createJsonParser(
"[7, \"http://example.com/event#myevent2\","
+ "{"
+ "\"rand\": 0.09187032734575862,"
+ "\"flag\": false,"
+ "\"num\": 23,"
+ "\"name\":\"Kross\","
+ "\"created\": \"2012-03-29T10:41:09.864Z\""
+ "}]"
));
if( !(msg instanceof WampPublishMessage) )
fail("Wrong message type");
assertEquals(WampMessage.PUBLISH, msg.getMessageType());
WampPublishMessage pMsg = (WampPublishMessage)msg;
assertEquals("http://example.com/event#myevent2", pMsg.getTopicId());
Object event = pMsg.getEvent();