@Test
public void testParseAndPrintVoidFormalParameter() throws Exception {

  // For simplicity, we deliberately chuck away "void" in function formal parameters; this test
  // captures that intent.
  final String program = ""
      + "int foo(void)\n"
      + "{\n"
      + " return 2;\n"
      + "}\n"
      + "void main(void)\n"
      + "{\n"
      + "}\n";
  final String expected = ""
      + "int foo()\n"
      + "{\n"
      + " return 2;\n"
      + "}\n"
      + "void main()\n"
      + "{\n"
      + "}\n";
  assertEquals(expected, PrettyPrinterVisitor.prettyPrintAsString(ParseHelper.parse(program
  )));
}