Program: 7001
Project: 7001
Buggy source:
public void testUploadServeOnlyFiles() throws Exception {
  MockServer server=new MockServer();
  FileInfo loadInfo=new FileInfo("String_Node_Str",0,false,false,null);
  String loadInfoContents="String_Node_Str";
  FileInfo serveInfo=new FileInfo("String_Node_Str",0,false,true,null);
  String serveInfoContents="String_Node_Str";
  List<FileInfo> fileSet=Arrays.asList(loadInfo,serveInfo);
  final BrowserFileSet browserFileSet=new BrowserFileSet(fileSet,Lists.<FileInfo>newArrayList());
  server.expect(baseUrl + "String_Node_Str","String_Node_Str");
  server.expect(baseUrl + "String_Node_Str" + gson.toJson(Arrays.asList(loadInfo))+ "String_Node_Str",gson.toJson(browserFileSet));
  server.expect(baseUrl + "String_Node_Str" + gson.toJson(fileSet)+ "String_Node_Str","String_Node_Str");
  JsonCommand cmd=new JsonCommand(CommandType.RESET,Collections.<String>emptyList());
  Map<String,String> resetParams=new LinkedHashMap<String,String>();
  resetParams.put("String_Node_Str","String_Node_Str");
  resetParams.put("String_Node_Str",gson.toJson(cmd));
  server.expect(baseUrl + "String_Node_Str","String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  server.expect(baseUrl + "String_Node_Str" + gson.toJson(Arrays.asList(new FileInfo(loadInfo.getFilePath(),loadInfo.getTimestamp(),loadInfo.isPatch(),loadInfo.isServeOnly(),loadInfoContents),new FileInfo(serveInfo.getFilePath(),serveInfo.getTimestamp(),serveInfo.isPatch(),serveInfo.isServeOnly(),serveInfoContents)))+ "String_Node_Str","String_Node_Str");
  String url=baseUrl + "String_Node_Str" + createLoadCommandString("String_Node_Str",CommandType.LOADTEST,Arrays.asList(fileInfoToFileSource(loadInfo)));
  server.expect(url,"String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  server.expect(baseUrl + "String_Node_Str","String_Node_Str" + createLoadedFilesResponseString() + "String_Node_Str");
  server.expect(baseUrl + "String_Node_Str","String_Node_Str");
  server.expect(baseUrl + "String_Node_Str","String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  Map<String,String> params=new LinkedHashMap<String,String>();
  params.put("String_Node_Str","String_Node_Str");
  params.put("String_Node_Str","String_Node_Str");
  FakeResponseStream stream=new FakeResponseStream();
  MockFileLoader fileReader=new MockFileLoader();
  fileReader.addExpectation(loadInfo,loadInfoContents);
  fileReader.addExpectation(serveInfo,serveInfoContents);
  CommandTask task=createCommandTask(server,params,stream,fileReader,true);
  task.run(new JstdTestCase(Collections.<FileInfo>emptyList(),fileSet,java.util.Collections.<FileInfo>emptyList()));
  Response response=stream.getResponse();
  assertEquals("String_Node_Str",response.getResponse());
  assertEquals(null,response.getBrowser().getName());
  assertEquals("String_Node_Str",response.getError());
  assertEquals(0,response.getExecutionTime());
}

Fixed version (ground truth):
public void testUploadServeOnlyFiles() throws Exception {
  MockServer server=new MockServer();
  FileInfo loadInfo=new FileInfo("String_Node_Str",0,-1,false,false,null);
  String loadInfoContents="String_Node_Str";
  FileInfo serveInfo=new FileInfo("String_Node_Str",0,-1,false,true,null);
  String serveInfoContents="String_Node_Str";
  List<FileInfo> fileSet=Arrays.asList(loadInfo,serveInfo);
  final BrowserFileSet browserFileSet=new BrowserFileSet(fileSet,Lists.<FileInfo>newArrayList());
  server.expect(baseUrl + "String_Node_Str","String_Node_Str");
  server.expect(baseUrl + "String_Node_Str" + gson.toJson(Arrays.asList(loadInfo))+ "String_Node_Str",gson.toJson(browserFileSet));
  server.expect(baseUrl + "String_Node_Str" + gson.toJson(fileSet)+ "String_Node_Str","String_Node_Str");
  JsonCommand cmd=new JsonCommand(CommandType.RESET,Collections.<String>emptyList());
  Map<String,String> resetParams=new LinkedHashMap<String,String>();
  resetParams.put("String_Node_Str","String_Node_Str");
  resetParams.put("String_Node_Str",gson.toJson(cmd));
  server.expect(baseUrl + "String_Node_Str","String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  server.expect(baseUrl + "String_Node_Str" + gson.toJson(Arrays.asList(new FileInfo(loadInfo.getFilePath(),loadInfo.getTimestamp(),-1,loadInfo.isPatch(),loadInfo.isServeOnly(),loadInfoContents),new FileInfo(serveInfo.getFilePath(),serveInfo.getTimestamp(),-1,serveInfo.isPatch(),serveInfo.isServeOnly(),serveInfoContents)))+ "String_Node_Str","String_Node_Str");
  String url=baseUrl + "String_Node_Str" + createLoadCommandString("String_Node_Str",CommandType.LOADTEST,Arrays.asList(fileInfoToFileSource(loadInfo)));
  server.expect(url,"String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  server.expect(baseUrl + "String_Node_Str","String_Node_Str" + createLoadedFilesResponseString() + "String_Node_Str");
  server.expect(baseUrl + "String_Node_Str","String_Node_Str");
  server.expect(baseUrl + "String_Node_Str","String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  Map<String,String> params=new LinkedHashMap<String,String>();
  params.put("String_Node_Str","String_Node_Str");
  params.put("String_Node_Str","String_Node_Str");
  FakeResponseStream stream=new FakeResponseStream();
  MockFileLoader fileReader=new MockFileLoader();
  fileReader.addExpectation(loadInfo,loadInfoContents);
  fileReader.addExpectation(serveInfo,serveInfoContents);
  CommandTask task=createCommandTask(server,params,stream,fileReader,true);
  task.run(new JstdTestCase(Collections.<FileInfo>emptyList(),fileSet,java.util.Collections.<FileInfo>emptyList()));
  Response response=stream.getResponse();
  assertEquals("String_Node_Str",response.getResponse());
  assertEquals(null,response.getBrowser().getName());
  assertEquals("String_Node_Str",response.getError());
  assertEquals(0,response.getExecutionTime());
}