extractMessageHeaders(op, message, null, Collections.<String>emptyList());
assertHeaders(message, op);
}
static OperationMap assertHeaders(Message message, Operation op) throws JMSException {
OperationMap opMap = op.get(MESSAGE_HEADERS, OperationMap.class);
assertNotNull("Missing " + MESSAGE_HEADERS + " map", opMap);
assertEquals(CORRELATION_ID, message.getJMSCorrelationID(), opMap.get(CORRELATION_ID, String.class));
assertEquals(DELIVERY_MODE, getDeliveryMode(message.getJMSDeliveryMode()).getLabel(), opMap.get(DELIVERY_MODE, String.class));
assertEquals(EXPIRATION, message.getJMSExpiration(), opMap.getLong(EXPIRATION, (-1L)));
assertEquals(MESSAGE_ID, message.getJMSMessageID(), opMap.get(MESSAGE_ID, String.class));
assertEquals(PRIORITY, message.getJMSPriority(), opMap.getInt(PRIORITY, (-1)));
assertEquals(REDELIVERED, Boolean.valueOf(message.getJMSRedelivered()), opMap.get(REDELIVERED, Boolean.class));
return opMap;
}