User-provided test that aims to reproduce rabbitmq/rabbitmq-java-client#19