fix and test for: https://issues.apache.org/jira/browse/AMQ-4413 For durable subscriptions the PrefetchSubscription can't drop messages in dispatchPending otherwise they are never added back into the pending cursor.