Method method = TestRequestCaller.class.getMethod("respond", new Class[]{ String.class });
request = new Request(method.getName(), new String[]{ payload }, method.getParameterTypes());
messagingQos = new MessagingQos(TTL);
expiryDate = DispatcherUtils.convertTtlToExpirationDate(messagingQos.getRoundTripTtl_ms());
}
<BUG>private void assertExpiryDateEquals(long expectedValue, JoynrMessage message) {
String headerExpiryString = message.getHeaderValue(JoynrMessage.HEADER_NAME_EXPIRY_DATE);
long headerExpiryValue = Long.parseLong(headerExpiryString);
long diff = Math.abs(expectedValue - headerExpiryValue);
assertTrue("ExpiryDate=" + headerExpiryString + " differs " + diff + "ms (more than "
+ MAX_ALLOWED_EXPIRY_DATE_DIFF_MS + "ms) from the expected value=" + expectedValue,
(diff <= MAX_ALLOWED_EXPIRY_DATE_DIFF_MS));
}</BUG>
@Test

Method method = TestRequestCaller.class.getMethod("respond", new Class[]{ String.class });
request = new Request(method.getName(), new String[]{ payload }, method.getParameterTypes());
messagingQos = new MessagingQos(TTL);
expiryDate = DispatcherUtils.convertTtlToExpirationDate(messagingQos.getRoundTripTtl_ms());
}
@Test
