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

Adds a test case to show that things work as expected.