fieldArray.add(123);
table.put("A", fieldArray);
//roundtrip of content headers
AMQP.Queue.DeclareOk ok = channel.queueDeclare();
String q = ok.getQueue();
BasicProperties props = new BasicProperties(null, null, table, null,
null, null, null, null,
null, null, null, null,
null, null);
channel.basicPublish("", q, props, "".getBytes());
BasicProperties rProps = channel.basicGet(q, true).getProps();
assertMapsEqual(props.getHeaders(), rProps.getHeaders());
//sending as part of method arguments - we are relying on
//exchange.declare ignoring the arguments table.
channel.exchangeDeclare("x", "direct", false, false, table);
channel.exchangeDelete("x");