//correct set, multiple tokens in the middle
stream = new TokenStream("this");
stream.append("is","a","test","stream");
stream.seekEnd();
stream.previous();
stream.previous();
stream.set("really", "interesting");
assertEquals(6, stream.getAllTokens().size());
assertEquals("interesting", stream.next());
assertEquals("stream", stream.next());
assertFalse(stream.hasNext());