stream.append("be", "or", "not", "to", "be");
stream.next(); //at be
stream.mergeWithPrevious();
stream.seekEnd();
stream.previous();
stream.mergeWithPrevious();
smap = getSortedMap(stream.getTokenMap());
assertEquals("[not, or, to be]", smap.keySet().toString());
assertEquals("[1, 1, 2]", smap.values().toString());
stream = null;