@Test
public void testNewArrayWithExplicitLength() {

  Parser<Expression> parser = ExpressionParser.newArrayWithExplicitLength(ExpressionParser.IDENTIFIER);
  TerminalParserTest.assertResult(parser, "new int[n]", NewArrayExpression.class, "new int[n]");
  TerminalParserTest.assertResult(parser, "new int[][n]", NewArrayExpression.class, "new int[][n]");
  TerminalParserTest.assertResult(parser, "new int[n]{}", NewArrayExpression.class, "new int[n] {}");
  TerminalParserTest.assertResult(parser, "new int[n]{a,b,c}", NewArrayExpression.class, "new int[n] {a, b, c}");
}