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

  com.google.ads.googleads.v5.services.GoogleAdsFieldName resourceName2 =
      com.google.ads.googleads.v5.services.GoogleAdsFieldName.of("[GOOGLE_ADS_FIELD]");
  com.google.ads.googleads.v5.services.GoogleAdsFieldName name =
      com.google.ads.googleads.v5.services.GoogleAdsFieldName.of("[GOOGLE_ADS_FIELD]");
  boolean selectable = true;
  boolean filterable = true;
  boolean sortable = true;
  String typeUrl = "typeUrl-675981590";
  boolean isRepeated = false;
  GoogleAdsField expectedResponse =
      GoogleAdsField.newBuilder()
          .setResourceName(resourceName2.toString())
          .setName(name.toString())
          .setSelectable(selectable)
          .setFilterable(filterable)
          .setSortable(sortable)
          .setTypeUrl(typeUrl)
          .setIsRepeated(isRepeated)
          .build();
  mockGoogleAdsFieldService.addResponse(expectedResponse);
  GoogleAdsFieldName resourceName = GoogleAdsFieldName.of("[GOOGLE_ADS_FIELD]");
  GoogleAdsField actualResponse = client.getGoogleAdsField(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockGoogleAdsFieldService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetGoogleAdsFieldRequest actualRequest = (GetGoogleAdsFieldRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, GoogleAdsFieldName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}