Program: 114806
Project: 114806
Buggy source:
@Test(groups={"String_Node_Str"},description="String_Node_Str",dependsOnMethods="String_Node_Str") public void testInvokeResourceWithAuthTypeApplication() 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,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");
  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 testInvokeResourceWithAuthTypeApplication() 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,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");
  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");
}