Program: 48385
Project: 48385
Buggy source:
@Test public void testCreateClusterBySpecFile() throws Exception {
  CookieCache.put("String_Node_Str","String_Node_Str");
  DistroRead[] distros=new DistroRead[1];
  DistroRead distro=new DistroRead();
  distro.setName(Constants.DEFAULT_DISTRO);
  List<String> roles=new ArrayList<String>();
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  distro.setRoles(roles);
  distros[0]=distro;
  NetworkRead[] networks=new NetworkRead[1];
  NetworkRead network=new NetworkRead();
  network.setName("String_Node_Str");
  network.setDhcp(true);
  network.setPortGroup("String_Node_Str");
  networks[0]=network;
  ValidateResult vr=new ValidateResult();
  vr.setValidated(true);
  ObjectMapper mapper=new ObjectMapper();
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(distros[0]));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(networks));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.OK,mapper.writeValueAsString(vr));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.NO_CONTENT,"String_Node_Str");
  clusterCommands.createCluster("String_Node_Str",null,null,null,"String_Node_Str",null,null,null,null,null,null,false,false,true,false,"String_Node_Str",null,null,null);
  setup();
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(distros[0]));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(networks));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.OK,mapper.writeValueAsString(vr));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.NO_CONTENT,"String_Node_Str");
  clusterCommands.createCluster("String_Node_Str",null,null,null,"String_Node_Str",null,null,null,null,null,null,false,false,true,false,"String_Node_Str",null,null,null);
  setup();
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(distros[0]));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(networks));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.OK,mapper.writeValueAsString(vr));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.NO_CONTENT,"String_Node_Str");
  clusterCommands.createCluster("String_Node_Str",null,null,null,"String_Node_Str",null,null,null,null,null,null,false,false,true,false,"String_Node_Str",null,null,null);
  setup();
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(distros[0]));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(networks));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.OK,mapper.writeValueAsString(vr));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.NO_CONTENT,"String_Node_Str");
  clusterCommands.createCluster("String_Node_Str",null,null,null,"String_Node_Str",null,null,null,null,null,null,false,false,true,false,"String_Node_Str",null,null,null);
  CookieCache.clear();
}

Fixed version (ground truth):
@Test public void testCreateClusterBySpecFile() throws Exception {
  CookieCache.put("String_Node_Str","String_Node_Str");
  DistroRead[] distros=new DistroRead[1];
  DistroRead distro=new DistroRead();
  distro.setName(Constants.DEFAULT_DISTRO);
  List<String> roles=new ArrayList<String>();
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  roles.add("String_Node_Str");
  distro.setRoles(roles);
  distros[0]=distro;
  NetworkRead[] networks=new NetworkRead[1];
  NetworkRead network=new NetworkRead();
  network.setName("String_Node_Str");
  network.setDhcp(true);
  network.setPortGroup("String_Node_Str");
  networks[0]=network;
  ValidateResult vr=new ValidateResult();
  vr.setValidated(true);
  ObjectMapper mapper=new ObjectMapper();
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(distros[0]));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(networks));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.OK,mapper.writeValueAsString(vr));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.NO_CONTENT,"String_Node_Str");
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(getClusterResponseForCreate()));
  clusterCommands.createCluster("String_Node_Str",null,null,null,"String_Node_Str",null,null,null,null,null,null,false,false,true,false,"String_Node_Str",null,null,null);
  setup();
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(distros[0]));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(networks));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.OK,mapper.writeValueAsString(vr));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.NO_CONTENT,"String_Node_Str");
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(getClusterResponseForCreate()));
  clusterCommands.createCluster("String_Node_Str",null,null,null,"String_Node_Str",null,null,null,null,null,null,false,false,true,false,"String_Node_Str",null,null,null);
  setup();
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(distros[0]));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(networks));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.OK,mapper.writeValueAsString(vr));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.NO_CONTENT,"String_Node_Str");
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(getClusterResponseForCreate()));
  clusterCommands.createCluster("String_Node_Str",null,null,null,"String_Node_Str",null,null,null,null,null,null,false,false,true,false,"String_Node_Str",null,null,null);
  setup();
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(distros[0]));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(networks));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.OK,mapper.writeValueAsString(vr));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.NO_CONTENT,"String_Node_Str");
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(getClusterResponseForCreate()));
  clusterCommands.createCluster("String_Node_Str",null,null,null,"String_Node_Str",null,null,null,null,null,null,false,false,true,false,"String_Node_Str",null,null,null);
  CookieCache.clear();
}