INT-2847 Fix Test with Java 7

Java 7 stores the comparator directly in the PriorityBlockingQueue
rather than in a nested PriorityQueue as in earlier JDKs.
Merge pull request #703 from garyrussell/INT-2847

* garyrussell-INT-2847:
  INT-2847 Fix Test with Java 7