Program: 114812
Project: 114812
Buggy source:
@Test(groups={"String_Node_Str"},description="String_Node_Str",dependsOnMethods="String_Node_Str") public void testApiInvocationAndEventTest() throws Exception {
  thriftTestServer.clearTables();
  HttpResponse serviceResponse=apiStore.addApplication(APP_NAME,APIThrottlingTier.UNLIMITED.getState(),"String_Node_Str","String_Node_Str");
  verifyResponse(serviceResponse);
  SubscriptionRequest subscriptionRequest=new SubscriptionRequest(API_NAME,user.getUserName());
  subscriptionRequest.setApplicationName(APP_NAME);
  subscriptionRequest.setTier(APIMIntegrationConstants.API_TIER.UNLIMITED);
  serviceResponse=apiStore.subscribe(subscriptionRequest);
  verifyResponse(serviceResponse);
  APPKeyRequestGenerator generateAppKeyRequest=new APPKeyRequestGenerator(APP_NAME);
  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();
  consumerKey=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);
  String invokeURL=getAPIInvocationURLHttp(API_CONTEXT,API_VERSION);
  serviceResponse=HttpRequestUtil.doGet(invokeURL + "String_Node_Str",requestHeaders);
  Assert.assertEquals(HttpStatus.SC_OK,serviceResponse.getResponseCode(),"String_Node_Str");
  testRequestEvent();
  testResponseEvent();
}

Fixed version (ground truth):
@Test(groups={"String_Node_Str"},description="String_Node_Str",dependsOnMethods="String_Node_Str") public void testApiInvocationAndEventTest() throws Exception {
  thriftTestServer.clearTables();
  HttpResponse serviceResponse=apiStore.addApplication(APP_NAME,APIThrottlingTier.UNLIMITED.getState(),"String_Node_Str","String_Node_Str");
  verifyResponse(serviceResponse);
  SubscriptionRequest subscriptionRequest=new SubscriptionRequest(API_NAME,user.getUserName());
  subscriptionRequest.setApplicationName(APP_NAME);
  subscriptionRequest.setTier(APIMIntegrationConstants.API_TIER.UNLIMITED);
  serviceResponse=apiStore.subscribe(subscriptionRequest);
  verifyResponse(serviceResponse);
  APPKeyRequestGenerator generateAppKeyRequest=new APPKeyRequestGenerator(APP_NAME);
  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();
  consumerKey=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);
  String invokeURL=getAPIInvocationURLHttp(API_CONTEXT,API_VERSION);
  serviceResponse=HTTPSClientUtils.doGet(invokeURL + "String_Node_Str",requestHeaders);
  Assert.assertEquals(HttpStatus.SC_OK,serviceResponse.getResponseCode(),"String_Node_Str");
  testRequestEvent();
  testResponseEvent();
}