Program: 69965
Project: 69965
Buggy source:
/** 
 * @param deploymentUrl
 * @param count
 * @throws IOException
 * @throws URISyntaxException Creates the selenium test users with random passwords and writes it to credentials.properties.
 */
public List<UserVO> createTestUsers(URL deploymentUrl,int count) throws IOException, URISyntaxException {
  RestConnection restConnection=new RestConnection(deploymentUrl);
  restConnection.login(getUsername(),getPassword());
  List<UserVO> user=new ArrayList<UserVO>();
  for (int i=0; i < count; i++) {
    UserVO vo=new UserVO();
    String username="String_Node_Str" + i + "String_Node_Str"+ UUID.randomUUID().toString();
    vo.setLogin(username);
    String password="String_Node_Str" + i + "String_Node_Str"+ UUID.randomUUID().toString();
    vo.setPassword(password);
    vo.setFirstName("String_Node_Str" + i);
    vo.setLastName("String_Node_Str");
    vo.setEmail(username + "String_Node_Str");
    vo.putProperty("String_Node_Str","String_Node_Str");
    vo.putProperty("String_Node_Str","String_Node_Str");
    vo.putProperty("String_Node_Str","String_Node_Str");
    vo.putProperty("String_Node_Str","String_Node_Str");
    vo.putProperty("String_Node_Str","String_Node_Str");
    URI request=UriBuilder.fromUri(deploymentUrl.toURI()).path("String_Node_Str").path("String_Node_Str").build();
    HttpPut method=restConnection.createPut(request,MediaType.APPLICATION_JSON,true);
    restConnection.addJsonEntity(method,vo);
    method.addHeader("String_Node_Str","String_Node_Str");
    HttpResponse response=restConnection.execute(method);
    assertTrue(response.getStatusLine().getStatusCode() == 200 || response.getStatusLine().getStatusCode() == 201);
    InputStream body=response.getEntity().getContent();
    UserVO current=restConnection.parse(body,UserVO.class);
    Assert.assertNotNull(current);
    user.add(current);
  }
  restConnection.shutdown();
  return (user);
}

Fixed version (ground truth):
/** 
 * @param deploymentUrl
 * @param count
 * @throws IOException
 * @throws URISyntaxException Creates the selenium test users with random passwords and writes it to credentials.properties.
 */
public List<UserVO> createTestUsers(URL deploymentUrl,int count) throws IOException, URISyntaxException {
  RestConnection restConnection=new RestConnection(deploymentUrl);
  restConnection.login(getUsername(),getPassword());
  List<UserVO> user=new ArrayList<UserVO>();
  for (int i=0; i < count; i++) {
    UserVO vo=new UserVO();
    String username="String_Node_Str" + i + "String_Node_Str"+ UUID.randomUUID().toString();
    vo.setLogin(username);
    String password=("String_Node_Str" + i + "String_Node_Str"+ UUID.randomUUID().toString()).substring(0,24);
    vo.setPassword(password);
    vo.setFirstName("String_Node_Str" + i);
    vo.setLastName("String_Node_Str");
    vo.setEmail(username + "String_Node_Str");
    vo.putProperty("String_Node_Str","String_Node_Str");
    vo.putProperty("String_Node_Str","String_Node_Str");
    vo.putProperty("String_Node_Str","String_Node_Str");
    vo.putProperty("String_Node_Str","String_Node_Str");
    vo.putProperty("String_Node_Str","String_Node_Str");
    URI request=UriBuilder.fromUri(deploymentUrl.toURI()).path("String_Node_Str").path("String_Node_Str").build();
    HttpPut method=restConnection.createPut(request,MediaType.APPLICATION_JSON,true);
    restConnection.addJsonEntity(method,vo);
    method.addHeader("String_Node_Str","String_Node_Str");
    HttpResponse response=restConnection.execute(method);
    assertTrue(response.getStatusLine().getStatusCode() == 200 || response.getStatusLine().getStatusCode() == 201);
    InputStream body=response.getEntity().getContent();
    UserVO current=restConnection.parse(body,UserVO.class);
    Assert.assertNotNull(current);
    user.add(vo);
  }
  restConnection.shutdown();
  return (user);
}