@Test
public void expectThrowsWhenNotMatchingOneOfManyAndDueToEof() {

    RuntimeException e = Assertions.assertThrows(RuntimeException.class, () -> {
        new SimpleParser("").expect('!', '?');
    });
    assertThat(e.getMessage(), equalTo(
            "Syntax error at line 1 column 1: Found '[EOF]', but expected one of the following tokens: '!' '?'"));
}