args.put("x-dead-letter-exchange", "test.DLE");
Queue queue = new Queue("", false, false, true, args);
String testQueueName = admin.declareQueue(queue);
// Create a DeadLetterExchange and bind a queue to it with the original routing key
DirectExchange dle = new DirectExchange("test.DLE", false, true);
admin.declareExchange(dle);
Queue dlq = new AnonymousQueue();
admin.declareQueue(dlq);
admin.declareBinding(BindingBuilder.bind(dlq).to(dle).with(testQueueName));
container.setQueueNames(testQueueName);