public void shouldMatchAnyOfProvidedTokens() {
Token t1 = new Token("a", 1, 1);
Token t2 = new Token("{", 2, 1);
Token t3 = new Token("b", 3, 1);
Token t4 = new Token("}", 4, 1);
TokenQueue tokenQueue = spy(new TokenQueue(Arrays.asList(t1, t2, t3, t4)));
List<Token> output = mock(List.class);
UptoTokenMatcher matcher = new UptoTokenMatcher(new String[] { "{", "}" });
assertThat(matcher.matchToken(tokenQueue, output), is(true));
assertThat(matcher.matchToken(tokenQueue, output), is(true));