Program: 114805
Project: 114805
Buggy source:
@Test(groups={"String_Node_Str"},description="String_Node_Str",dependsOnMethods="String_Node_Str") public void testInvokeGETResourceWithAuthTypeApplicationUser() throws Exception {
  APICreationRequestBean apiCreationRequestBean=new APICreationRequestBean(API_NAME,API_CONTEXT,API_VERSION_1_0_0,providerName,new URL(apiEndPointUrl));
  apiCreationRequestBean.setTags(API_TAGS);
  apiCreationRequestBean.setDescription(API_DESCRIPTION);
  apiCreationRequestBean.setVisibility("String_Node_Str");
  List<APIResourceBean> apiResourceBeansList=new ArrayList<APIResourceBean>();
  APIResourceBean apiResourceBeanGET=new APIResourceBean(APIMIntegrationConstants.HTTP_VERB_GET,APIMIntegrationConstants.RESOURCE_AUTH_TYPE_APPLICATION_USER,APIMIntegrationConstants.RESOURCE_TIER.UNLIMITED,"String_Node_Str");
  apiResourceBeansList.add(apiResourceBeanGET);
  apiCreationRequestBean.setResourceBeanList(apiResourceBeansList);
  HttpResponse updateAPIHTTPResponse=apiPublisherClientUser1.updateAPI(apiCreationRequestBean);
  assertEquals(updateAPIHTTPResponse.getResponseCode(),HTTP_RESPONSE_CODE_OK,"String_Node_Str");
  assertEquals(getValueFromJSON(updateAPIHTTPResponse,"String_Node_Str"),"String_Node_Str","String_Node_Str");
  String requestBody="String_Node_Str";
  URL tokenEndpointURL=new URL(gatewayUrlsWrk.getWebAppURLNhttp() + "String_Node_Str");
  JSONObject accessTokenGenerationResponse=new JSONObject(apiStoreClientUser1.generateUserAccessKey(applicationKeyBean.getConsumerKey(),applicationKeyBean.getConsumerSecret(),requestBody,tokenEndpointURL).getData());
  requestHeadersGet.put("String_Node_Str","String_Node_Str" + accessTokenGenerationResponse.getString("String_Node_Str"));
  HttpResponse httpResponseGet=HttpRequestUtil.doGet(getAPIInvocationURLHttp(API_CONTEXT,API_VERSION_1_0_0) + "String_Node_Str" + API_GET_ENDPOINT_METHOD,requestHeadersGet);
  assertEquals(httpResponseGet.getResponseCode(),HTTP_RESPONSE_CODE_OK,"String_Node_Str" + "String_Node_Str");
  assertTrue(httpResponseGet.getData().contains(RESPONSE_GET),"String_Node_Str" + "String_Node_Str" + RESPONSE_GET + "String_Node_Str"+ httpResponseGet.getData()+ "String_Node_Str");
}

Fixed version (ground truth):
@Test(groups={"String_Node_Str"},description="String_Node_Str",dependsOnMethods="String_Node_Str") public void testInvokeGETResourceWithAuthTypeApplicationUser() throws Exception {
  APICreationRequestBean apiCreationRequestBean=new APICreationRequestBean(API_NAME,API_CONTEXT,API_VERSION_1_0_0,providerName,new URL(apiEndPointUrl));
  apiCreationRequestBean.setTags(API_TAGS);
  apiCreationRequestBean.setDescription(API_DESCRIPTION);
  apiCreationRequestBean.setVisibility("String_Node_Str");
  List<APIResourceBean> apiResourceBeansList=new ArrayList<APIResourceBean>();
  APIResourceBean apiResourceBeanGET=new APIResourceBean(APIMIntegrationConstants.HTTP_VERB_GET,APIMIntegrationConstants.RESOURCE_AUTH_TYPE_APPLICATION_USER,APIMIntegrationConstants.RESOURCE_TIER.UNLIMITED,"String_Node_Str");
  apiResourceBeansList.add(apiResourceBeanGET);
  apiCreationRequestBean.setResourceBeanList(apiResourceBeansList);
  HttpResponse updateAPIHTTPResponse=apiPublisherClientUser1.updateAPI(apiCreationRequestBean);
  assertEquals(updateAPIHTTPResponse.getResponseCode(),HTTP_RESPONSE_CODE_OK,"String_Node_Str");
  assertEquals(getValueFromJSON(updateAPIHTTPResponse,"String_Node_Str"),"String_Node_Str","String_Node_Str");
  String requestBody="String_Node_Str";
  URL tokenEndpointURL=new URL(gatewayUrlsWrk.getWebAppURLNhttp() + "String_Node_Str");
  JSONObject accessTokenGenerationResponse=new JSONObject(apiStoreClientUser1.generateUserAccessKey(applicationKeyBean.getConsumerKey(),applicationKeyBean.getConsumerSecret(),requestBody,tokenEndpointURL).getData());
  requestHeadersGet.put("String_Node_Str","String_Node_Str" + accessTokenGenerationResponse.getString("String_Node_Str"));
  HttpResponse httpResponseGet=HTTPSClientUtils.doGet(getAPIInvocationURLHttp(API_CONTEXT,API_VERSION_1_0_0) + "String_Node_Str" + API_GET_ENDPOINT_METHOD,requestHeadersGet);
  assertEquals(httpResponseGet.getResponseCode(),HTTP_RESPONSE_CODE_OK,"String_Node_Str" + "String_Node_Str");
  assertTrue(httpResponseGet.getData().contains(RESPONSE_GET),"String_Node_Str" + "String_Node_Str" + RESPONSE_GET + "String_Node_Str"+ httpResponseGet.getData()+ "String_Node_Str");
}