@Test
@SuppressWarnings("all")
public void getAdParameterTest() {

  com.google.ads.googleads.v5.services.AdParameterName resourceName2 =
      com.google.ads.googleads.v5.services.AdParameterName.of("[CUSTOMER]", "[AD_PARAMETER]");
  AdGroupCriterionName adGroupCriterion =
      AdGroupCriterionName.of("[CUSTOMER]", "[AD_GROUP_CRITERION]");
  long parameterIndex = 763436220L;
  String insertionText = "insertionText-1755831107";
  AdParameter expectedResponse =
      AdParameter.newBuilder()
          .setResourceName(resourceName2.toString())
          .setAdGroupCriterion(adGroupCriterion.toString())
          .setParameterIndex(parameterIndex)
          .setInsertionText(insertionText)
          .build();
  mockAdParameterService.addResponse(expectedResponse);
  AdParameterName resourceName = AdParameterName.of("[CUSTOMER]", "[AD_PARAMETER]");
  AdParameter actualResponse = client.getAdParameter(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockAdParameterService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetAdParameterRequest actualRequest = (GetAdParameterRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, AdParameterName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}