@Test
public void testIfStatement() {

  Parser<Statement> parser = StatementParser.ifStatement(ExpressionParser.IDENTIFIER, SIMPLE_STATEMENT);
  TerminalParserTest.assertResult(parser, "if (foo) bar;", IfStatement.class, "if (foo) bar;");
  TerminalParserTest.assertResult(parser, "if (foo) bar; else baz;", IfStatement.class, "if (foo) bar; else baz;");
  TerminalParserTest.assertResult(parser, "if (foo) bar; else if(baz) baz;",
      IfStatement.class, "if (foo) bar; else if (baz) baz;");
}