https://issues.apache.org/jira/browse/AMQCPP-532

Add test case to try and reproduce.