Program: 49097
Project: 49097
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");
  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;
  ObjectMapper mapper=new ObjectMapper();
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(distros));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(networks));
  buildReqRespWithoutReqBody("String_Node_Str" + Constants.DEFAULT_DISTRO,HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(distro));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.NO_CONTENT,"String_Node_Str");
  clusterCommands.createCluster("String_Node_Str",null,null,"String_Node_Str",null,null,null,null,false,false,true);
  setup();
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(distros));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(networks));
  buildReqRespWithoutReqBody("String_Node_Str" + Constants.DEFAULT_DISTRO,HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(distro));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.NO_CONTENT,"String_Node_Str");
  clusterCommands.createCluster("String_Node_Str",null,null,"String_Node_Str",null,null,null,null,false,false,true);
  CookieCache.put("String_Node_Str","String_Node_Str");
}

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");
  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;
  ObjectMapper mapper=new ObjectMapper();
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(distros));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(networks));
  buildReqRespWithoutReqBody("String_Node_Str" + Constants.DEFAULT_DISTRO,HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(distro));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.NO_CONTENT,"String_Node_Str");
  clusterCommands.createCluster("String_Node_Str",null,null,"String_Node_Str",null,null,null,null,false,false,true);
  setup();
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(distros));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(networks));
  buildReqRespWithoutReqBody("String_Node_Str" + Constants.DEFAULT_DISTRO,HttpMethod.GET,HttpStatus.OK,mapper.writeValueAsString(distro));
  buildReqRespWithoutReqBody("String_Node_Str",HttpMethod.POST,HttpStatus.NO_CONTENT,"String_Node_Str");
  clusterCommands.createCluster("String_Node_Str",null,null,"String_Node_Str",null,null,null,null,false,false,true);
  CookieCache.clear();
}