@Test
public void testValidate() {

  JJTreeOptions.init();
  JavaCCErrors.reInit();
  JJTreeOptions.setCmdLineOption("VISITOR_DATA_TYPE=Object");
  JJTreeOptions.validate();
  assertEquals(1, JavaCCErrors.getWarningCount());
  JJTreeOptions.init();
  JavaCCErrors.reInit();
  JJTreeOptions.setCmdLineOption("VISITOR_DATA_TYPE=Object");
  JJTreeOptions.setCmdLineOption("VISITOR=true");
  JJTreeOptions.validate();
  assertEquals(0, JavaCCErrors.getWarningCount());
  JJTreeOptions.init();
  JavaCCErrors.reInit();
  JJTreeOptions.setCmdLineOption("VISITOR_DATA_TYPE=Object");
  JJTreeOptions.validate();
  assertEquals(1, JavaCCErrors.getWarningCount());
}