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

Add patch that fixes the missing test case.