Program: 114808
Project: 114808
Buggy source:
@Test(groups={"String_Node_Str"},description="String_Node_Str") public void testInvokeResourceWithAuthTypeApplicationAndApplicationUser() throws Exception {
  apiStoreClientUser1.addApplication(APPLICATION_NAME,APIMIntegrationConstants.APPLICATION_TIER.LARGE,"String_Node_Str","String_Node_Str");
  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_AND_APPLICATION_USER,APIMIntegrationConstants.RESOURCE_TIER.UNLIMITED,"String_Node_Str");
  apiResourceBeansList.add(apiResourceBeanGET);
  apiCreationRequestBean.setResourceBeanList(apiResourceBeansList);
  apiIdentifier=new APIIdentifier(providerName,API_NAME,API_VERSION_1_0_0);
  createPublishAndSubscribeToAPI(apiIdentifier,apiCreationRequestBean,apiPublisherClientUser1,apiStoreClientUser1,APPLICATION_NAME);
  applicationKeyBean=generateApplicationKeys(apiStoreClientUser1,APPLICATION_NAME);
  String accessToken=applicationKeyBean.getAccessToken();
  requestHeadersGet.put("String_Node_Str","String_Node_Str" + accessToken);
  waitForAPIDeploymentSync(user.getUserName(),API_NAME,API_VERSION_1_0_0,APIMIntegrationConstants.IS_API_EXISTS);
  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"+ "String_Node_Str"+ httpResponseGet.getData()+ "String_Node_Str");
}

Fixed version (ground truth):
@Test(groups={"String_Node_Str"},description="String_Node_Str") public void testInvokeResourceWithAuthTypeApplicationAndApplicationUser() throws Exception {
  apiStoreClientUser1.addApplication(APPLICATION_NAME,APIMIntegrationConstants.APPLICATION_TIER.LARGE,"String_Node_Str","String_Node_Str");
  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_AND_APPLICATION_USER,APIMIntegrationConstants.RESOURCE_TIER.UNLIMITED,"String_Node_Str");
  apiResourceBeansList.add(apiResourceBeanGET);
  apiCreationRequestBean.setResourceBeanList(apiResourceBeansList);
  apiIdentifier=new APIIdentifier(providerName,API_NAME,API_VERSION_1_0_0);
  createPublishAndSubscribeToAPI(apiIdentifier,apiCreationRequestBean,apiPublisherClientUser1,apiStoreClientUser1,APPLICATION_NAME);
  applicationKeyBean=generateApplicationKeys(apiStoreClientUser1,APPLICATION_NAME);
  String accessToken=applicationKeyBean.getAccessToken();
  requestHeadersGet.put("String_Node_Str","String_Node_Str" + accessToken);
  waitForAPIDeploymentSync(user.getUserName(),API_NAME,API_VERSION_1_0_0,APIMIntegrationConstants.IS_API_EXISTS);
  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"+ "String_Node_Str"+ httpResponseGet.getData()+ "String_Node_Str");
}