JoynrMessage message = joynrMessageFactory.createReply(fromParticipantId, toParticipantId, reply, messagingQos);
assertEquals(JoynrMessage.MESSAGE_TYPE_REPLY, message.getType());
assertEquals(fromParticipantId, message.getHeaderValue(JoynrMessage.HEADER_NAME_FROM_PARTICIPANT_ID));
assertEquals(toParticipantId, message.getHeaderValue(JoynrMessage.HEADER_NAME_TO_PARTICIPANT_ID));
assertEquals(JoynrMessage.CONTENT_TYPE_APPLICATION_JSON,
<BUG>message.getHeaderValue(JoynrMessage.HEADER_NAME_CONTENT_TYPE));
assertTrue(message.getPayload() != null);</BUG>
assertNotNull(message.getCreatorUserId());
}
@Test

JoynrMessage message = joynrMessageFactory.createReply(fromParticipantId, toParticipantId, reply, messagingQos);
assertEquals(JoynrMessage.MESSAGE_TYPE_REPLY, message.getType());
assertEquals(fromParticipantId, message.getHeaderValue(JoynrMessage.HEADER_NAME_FROM_PARTICIPANT_ID));
assertEquals(toParticipantId, message.getHeaderValue(JoynrMessage.HEADER_NAME_TO_PARTICIPANT_ID));
assertEquals(JoynrMessage.CONTENT_TYPE_APPLICATION_JSON,
message.getHeaderValue(JoynrMessage.HEADER_NAME_CONTENT_TYPE));
assertExpiryDateEquals(expiryDate.getValue(), message);
assertTrue(message.getPayload() != null);
assertNotNull(message.getCreatorUserId());
}
@Test
