String multicastId = "multicastId";
MulticastPublication multicastPublication = new MulticastPublication(Collections.emptyList(), multicastId);
JoynrMessage joynrMessage = joynrMessageFactory.createMulticast(fromParticipantId,
multicastPublication,
messagingQos);
<BUG>assertNotNull(joynrMessage);
assertEquals(fromParticipantId, joynrMessage.getFrom());</BUG>
assertEquals(multicastId, joynrMessage.getTo());
assertEquals(JoynrMessage.MESSAGE_TYPE_MULTICAST, joynrMessage.getType());
assertTrue(joynrMessage.getPayload().contains(MulticastPublication.class.getName()));

String multicastId = "multicastId";
MulticastPublication multicastPublication = new MulticastPublication(Collections.emptyList(), multicastId);
JoynrMessage joynrMessage = joynrMessageFactory.createMulticast(fromParticipantId,
multicastPublication,
messagingQos);
assertNotNull(joynrMessage);
assertExpiryDateEquals(expiryDate.getValue(), joynrMessage);
assertEquals(fromParticipantId, joynrMessage.getFrom());
assertEquals(multicastId, joynrMessage.getTo());
assertEquals(JoynrMessage.MESSAGE_TYPE_MULTICAST, joynrMessage.getType());
assertTrue(joynrMessage.getPayload().contains(MulticastPublication.class.getName()));
