Program: 114907
Project: 114907
Buggy source:
@Test(groups={"String_Node_Str"},description="String_Node_Str") public void testAPICreation() throws Exception {
  String providerName=user.getUserName();
  apiRequest=new APIRequest(apiName,APIContext,new URL(endpointUrl));
  apiRequest.setTags(tags);
  apiRequest.setDescription(description);
  apiRequest.setVersion(APIVersion);
  apiRequest.setProvider(providerName);
  HttpResponse serviceResponse=apiPublisher.addAPI(apiRequest);
  verifyResponse(serviceResponse);
  APILifeCycleStateRequest updateRequest=new APILifeCycleStateRequest(apiName,user.getUserName(),APILifeCycleState.PUBLISHED);
  serviceResponse=apiPublisher.changeAPILifeCycleStatus(updateRequest);
  verifyResponse(serviceResponse);
  serviceResponse=apiStore.addApplication(appName,APIThrottlingTier.UNLIMITED.getState(),"String_Node_Str","String_Node_Str");
  verifyResponse(serviceResponse);
  String provider=user.getUserName();
  SubscriptionRequest subscriptionRequest=new SubscriptionRequest(apiName,provider);
  subscriptionRequest.setApplicationName(appName);
  subscriptionRequest.setTier(APIMIntegrationConstants.API_TIER.GOLD);
  serviceResponse=apiStore.subscribe(subscriptionRequest);
  verifyResponse(serviceResponse);
  APPKeyRequestGenerator generateAppKeyRequest=new APPKeyRequestGenerator(appName);
  String responseString=apiStore.generateApplicationKey(generateAppKeyRequest).getData();
  log.info(responseString);
  JSONObject response=new JSONObject(responseString);
  String accessToken=response.getJSONObject("String_Node_Str").getJSONObject("String_Node_Str").get("String_Node_Str").toString();
  Assert.assertNotNull("String_Node_Str" + responseString,accessToken);
  requestHeaders.put(APIMIntegrationConstants.AUTHORIZATION_HEADER,"String_Node_Str" + accessToken);
}

Fixed version (ground truth):
@Test(groups={"String_Node_Str"},description="String_Node_Str") public void testAPICreation() throws Exception {
  String providerName=user.getUserName();
  apiRequest=new APIRequest(apiName,APIContext,new URL(endpointUrl));
  apiRequest.setTags(tags);
  apiRequest.setDescription(description);
  apiRequest.setVersion(APIVersion);
  apiRequest.setProvider(providerName);
  HttpResponse serviceResponse=apiPublisher.addAPI(apiRequest);
  verifyResponse(serviceResponse);
  APILifeCycleStateRequest updateRequest=new APILifeCycleStateRequest(apiName,user.getUserName(),APILifeCycleState.PUBLISHED);
  serviceResponse=apiPublisher.changeAPILifeCycleStatus(updateRequest);
  verifyResponse(serviceResponse);
  serviceResponse=apiStore.addApplication(appName,APIThrottlingTier.UNLIMITED.getState(),"String_Node_Str","String_Node_Str");
  verifyResponse(serviceResponse);
  String provider=user.getUserName();
  SubscriptionRequest subscriptionRequest=new SubscriptionRequest(apiName,provider);
  subscriptionRequest.setApplicationName(appName);
  subscriptionRequest.setTier(APIMIntegrationConstants.API_TIER.GOLD);
  serviceResponse=apiStore.subscribe(subscriptionRequest);
  verifyResponse(serviceResponse);
  APPKeyRequestGenerator generateAppKeyRequest=new APPKeyRequestGenerator(appName);
  String responseString=apiStore.generateApplicationKey(generateAppKeyRequest).getData();
  JSONObject response=new JSONObject(responseString);
  String accessToken=response.getJSONObject("String_Node_Str").getJSONObject("String_Node_Str").get("String_Node_Str").toString();
  Assert.assertNotNull("String_Node_Str" + responseString,accessToken);
  requestHeaders.put(APIMIntegrationConstants.AUTHORIZATION_HEADER,"String_Node_Str" + accessToken);
}