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

  com.google.ads.googleads.v5.services.GeographicViewName resourceName2 =
      com.google.ads.googleads.v5.services.GeographicViewName.of(
          "[CUSTOMER]", "[GEOGRAPHIC_VIEW]");
  long countryCriterionId = 1427674750L;
  GeographicView expectedResponse =
      GeographicView.newBuilder()
          .setResourceName(resourceName2.toString())
          .setCountryCriterionId(countryCriterionId)
          .build();
  mockGeographicViewService.addResponse(expectedResponse);
  GeographicViewName resourceName = GeographicViewName.of("[CUSTOMER]", "[GEOGRAPHIC_VIEW]");
  GeographicView actualResponse = client.getGeographicView(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockGeographicViewService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetGeographicViewRequest actualRequest = (GetGeographicViewRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, GeographicViewName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}