https://issues.apache.org/jira/browse/AMQ-4962

Test that demonstrates the issue.