// declare and bind queues
session.queueDeclare("headers_queue_any", null, null);
session.queueDeclare("headers_queue_all", null, null);
// we need to declare the header: name, type, alternate exchange
session.exchangeDeclare("test.headers", "headers", "amq.direct", null);
// The matching algorithm is controlled by 'x-match' property
// 'x-match' can take one of two values,
// (i) 'all' implies that all the other pairs must match the headers
// property of a message for that message to be routed (i.e. an AND match)
// (ii) 'any' implies that the message should be routed if any of the