@Test
public void testNewArrayWithoutExplicitLength() {

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