Program: 82235
Project: 82235
Buggy source:
@Test public void testNewCommandLoading() throws IOException, TimeoutException, InterruptedException, ExceptionCollector {
  _manager.close();
  new File(_tmpPath).mkdirs();
  File commandPath=new File(_commandPath);
  rmr(commandPath);
  if (commandPath.exists()) {
    fail("String_Node_Str" + commandPath + "String_Node_Str");
  }
  commandPath.mkdirs();
{
    InputStream inputStream=getClass().getResourceAsStream("String_Node_Str");
    File dest=new File(commandPath,"String_Node_Str");
    FileOutputStream output=new FileOutputStream(dest);
    IOUtils.copy(inputStream,output);
    inputStream.close();
    output.close();
  }
  ShardCommandManager manager=new ShardCommandManager(getIndexServer(),_tmpPath,_commandPath,10,10,1000,_config);
{
    BlurObject args=new BlurObject();
    args.put("String_Node_Str","String_Node_Str");
    ArgumentOverlay argumentOverlay=new ArgumentOverlay(args,new BlurObjectSerDe());
    Response response=manager.execute(getTableContextFactory(),"String_Node_Str",argumentOverlay);
    Map<Shard,Object> shardResults=response.getShardResults();
    for (    Object o : shardResults.values()) {
      assertEquals("String_Node_Str",o);
    }
  }
{
    InputStream inputStream=getClass().getResourceAsStream("String_Node_Str");
    File dest=new File(commandPath,"String_Node_Str");
    FileOutputStream output=new FileOutputStream(dest);
    IOUtils.copy(inputStream,output);
    inputStream.close();
    output.close();
  }
  assertEquals(1,manager.commandRefresh());
{
    BlurObject args=new BlurObject();
    args.put("String_Node_Str","String_Node_Str");
    ArgumentOverlay argumentOverlay=new ArgumentOverlay(args,new BlurObjectSerDe());
    Response response=manager.execute(getTableContextFactory(),"String_Node_Str",argumentOverlay);
    Map<Shard,Object> shardResults=response.getShardResults();
    for (    Object o : shardResults.values()) {
      assertEquals("String_Node_Str",o);
    }
  }
  _manager=manager;
}

Fixed version (ground truth):
@Test public void testNewCommandLoading() throws IOException, TimeoutException, InterruptedException, ExceptionCollector {
  _manager.close();
  _tmpPath.mkdirs();
  File commandPath=new File(_commandPath);
  rmr(commandPath);
  if (commandPath.exists()) {
    fail("String_Node_Str" + commandPath + "String_Node_Str");
  }
  commandPath.mkdirs();
{
    InputStream inputStream=getClass().getResourceAsStream("String_Node_Str");
    File dest=new File(commandPath,"String_Node_Str");
    FileOutputStream output=new FileOutputStream(dest);
    IOUtils.copy(inputStream,output);
    inputStream.close();
    output.close();
  }
  ShardCommandManager manager=new ShardCommandManager(getIndexServer(),_tmpPath,_commandPath,10,10,1000,_config);
{
    BlurObject args=new BlurObject();
    args.put("String_Node_Str","String_Node_Str");
    ArgumentOverlay argumentOverlay=new ArgumentOverlay(args,new BlurObjectSerDe());
    Response response=manager.execute(getTableContextFactory(),"String_Node_Str",argumentOverlay);
    Map<Shard,Object> shardResults=response.getShardResults();
    for (    Object o : shardResults.values()) {
      assertEquals("String_Node_Str",o);
    }
  }
{
    InputStream inputStream=getClass().getResourceAsStream("String_Node_Str");
    File dest=new File(commandPath,"String_Node_Str");
    FileOutputStream output=new FileOutputStream(dest);
    IOUtils.copy(inputStream,output);
    inputStream.close();
    output.close();
  }
  assertEquals(1,manager.commandRefresh());
{
    BlurObject args=new BlurObject();
    args.put("String_Node_Str","String_Node_Str");
    ArgumentOverlay argumentOverlay=new ArgumentOverlay(args,new BlurObjectSerDe());
    Response response=manager.execute(getTableContextFactory(),"String_Node_Str",argumentOverlay);
    Map<Shard,Object> shardResults=response.getShardResults();
    for (    Object o : shardResults.values()) {
      assertEquals("String_Node_Str",o);
    }
  }
  _manager=manager;
}