public void checkContextHeader(MessageContext ctx, String headerName) {
assertTrue("JMSContext should contain the property " + headerName,
null != ctx.get(headerName));
JMSMessageHeadersType reqHdr = (JMSMessageHeadersType)
ctx.get(headerName);
assertTrue("JMSHeader correlation id mismatch: expected " + TEST_CORRELATION_ID,
TEST_CORRELATION_ID.equals(reqHdr.getJMSCorrelationID()));
assertTrue("JMSRedelivered should be false",
!reqHdr.isSetJMSRedelivered());
assertTrue("JMS priority should be 6", reqHdr.getJMSPriority() == 6);
assertTrue("JMS timetolive should be greater than 0 ", reqHdr.getTimeToLive() > 0);
}