String postExpand = ")";
boolean skipTags = true;
//1
ExpandingReader reader = new ExpandingReader(new StringReader(s), words, preExpand, postExpand, skipTags);
String result = readFully(reader);
assertEquals("Hello", result);
//2
skipTags = false;
reader = new ExpandingReader(new StringReader(s), words, preExpand, postExpand, skipTags);
result = readFully(reader);
assertEquals("Hello", result);
//3
skipTags = true;
words = Arrays.asList("hello");
reader = new ExpandingReader(new StringReader(s), words, preExpand, postExpand, skipTags);
result = readFully(reader);
assertEquals("(Hello)", result);
//4
skipTags = false;
words = Arrays.asList("hello");
reader = new ExpandingReader(new StringReader(s), words, preExpand, postExpand, skipTags);
result = readFully(reader);
assertEquals("(Hello)", result);
//5
preExpand = "hello";
postExpand = "Hello";
skipTags = true;
words = Arrays.asList("hello");
reader = new ExpandingReader(new StringReader(s), words, preExpand, postExpand, skipTags);
result = readFully(reader);
assertEquals("helloHelloHello", result);
}