### Question:
ExpressionParser { TextNode textNode() { return textNode(false); } ExpressionParser(String str);   }### Answer:
@Test public void testUnfollowedEscape() { try { new ExpressionParser("hi\\").textNode(); fail("should have thrown"); } catch (IllegalArgumentException e) { } }
@Test public void testEscapedEscape() { TextNode node = new ExpressionParser("hi\\\\").textNode(); assertThat(node.getText()).isEqualTo("hi\\\\"); }