@Test
public void testExecute() {

  final String[] args = {"config", "set", "name", "value"};
  final OperationRegistry registry = OperationRegistry.getInstance();
  final OperationParser parser = new OperationParser(registry);
  final CommandLineOperationParams params = parser.parse(GeoWaveTopLevelSection.class, args);
  final SetCommand setcommand = new SetCommand();
  final String name = "name";
  final String value = "value";
  setcommand.setParameters(name, value);
  setcommand.prepare(params);
  setcommand.execute(params);
  final File f = (File) params.getContext().get(ConfigOptions.PROPERTIES_FILE_CONTEXT);
  final Properties p = ConfigOptions.loadProperties(f);
  assertEquals(value, p.getProperty(name));
}