HelpCommand extends DefaultOperation implements Command { @Override public boolean prepare(final OperationParams inputParams) { super.prepare(inputParams); final CommandLineOperationParams params = (CommandLineOperationParams) inputParams; params.setValidate(false); params.setAllowUnknown(true); return true; }  @Override boolean prepare(final OperationParams inputParams); @Override void execute(final OperationParams inputParams);  }
@Test public void testPrepare() { final String[] args = {"help"}; final OperationRegistry registry = OperationRegistry.getInstance(); final OperationParser parser = new OperationParser(registry); final CommandLineOperationParams params = parser.parse(GeoWaveTopLevelSection.class, args); final HelpCommand helpcommand = new HelpCommand(); helpcommand.prepare(params); assertEquals(false, params.isValidate()); assertEquals(true, params.isAllowUnknown()); }