@Test
public void testMerge() {
//merge with null
TokenStream stream1 = new TokenStream("this");
stream1.append("is","a","test","stream");
stream1.merge(null);
assertEquals(5, stream1.getAllTokens().size());
TokenStream stream2 = new TokenStream((String) null);
stream1.merge(stream2);
assertEquals(5, stream1.getAllTokens().size());