public void serialize3() throws SerializationException{
//it's set to NON_DEFAULT in WampSerialize to reducing data size. Maybe it shouldn"t
serializer.getObjectMapper().getSerializationConfig().setSerializationInclusion(JsonSerialize.Inclusion.ALWAYS);
OutputWampPublishMessage msg = new OutputWampPublishMessage();
msg.setTopicId("http://example.com/event#myevent2");
SomeObject obj = new SomeObject();
obj.setRand(0.09187032734575862);
obj.setFlag(false);
obj.setNum(23);
obj.setName("Kross");
Calendar cal = Calendar.getInstance();
//Seriously month 0-based !!! ?
cal.set(2012, 2, 29, 10, 41, 9);
cal.set(Calendar.MILLISECOND, 864);
obj.setCreated(cal.getTime());
msg.setEvent(obj);
assertEquals("[7,\"http://example.com/event#myevent2\","
+ "{"
+ "\"rand\":0.09187032734575862,"
+ "\"flag\":false,"