private void sendTestMessage() throws IOException, InterruptedException {
Channel producerChannel = connectionFactory.newConnection().createChannel();
producerChannel.confirmSelect();
producerChannel.basicPublish("", TestBrokerSetup.TEST_QUEUE, new BasicProperties.Builder().build(), "test".getBytes("UTF-8"));
producerChannel.waitForConfirmsOrDie();
brokerAssert.queueNotEmtpy(TestBrokerSetup.TEST_QUEUE);
}
private class NackingConsumer extends MessageConsumer {
boolean called = false;