@Test
public void testVarStatement() {

  Parser<Statement> parser = StatementParser.varStatement(ExpressionParser.IDENTIFIER);
  TerminalParserTest.assertResult(parser, "int i;", VarStatement.class, "int i;");
  TerminalParserTest.assertResult(parser, "int i=n;", VarStatement.class, "int i = n;");
  TerminalParserTest.assertResult(parser, "final int i=n;", VarStatement.class, "final int i = n;");
  TerminalParserTest.assertResult(parser, "final int[] a1={}, a2, a3={m, n};",
      VarStatement.class, "final int[] a1 = {}, a2, a3 = {m, n};");
}