@Test
public void throwsWhenNotNewline() {

    RuntimeException e = Assertions.assertThrows(RuntimeException.class, () -> {
        SimpleParser p = new SimpleParser("H");
        p.br();
    });
    assertThat(e.getMessage(), containsString("Expected a line break, but found 'H'"));
}