JoynrMessage message = joynrMessageFactory.createOneWayRequest(fromParticipantId,
toParticipantId,
request,
messagingQos);
assertNotNull(message);
<BUG>assertEquals(JoynrMessage.MESSAGE_TYPE_ONE_WAY, message.getType());
final String expectedCustomHeaderName = JoynrMessage.MESSAGE_CUSTOM_HEADER_PREFIX + headerName;</BUG>
assertTrue(message.getHeader().containsKey(expectedCustomHeaderName));
Map<String, String> customHeaders = message.getCustomHeaders();
assertTrue(customHeaders.size() == 1);

JoynrMessage message = joynrMessageFactory.createOneWayRequest(fromParticipantId,
toParticipantId,
request,
messagingQos);
assertNotNull(message);
assertEquals(JoynrMessage.MESSAGE_TYPE_ONE_WAY, message.getType());
assertExpiryDateEquals(expiryDate.getValue(), message);
final String expectedCustomHeaderName = JoynrMessage.MESSAGE_CUSTOM_HEADER_PREFIX + headerName;
assertTrue(message.getHeader().containsKey(expectedCustomHeaderName));
Map<String, String> customHeaders = message.getCustomHeaders();
assertTrue(customHeaders.size() == 1);
