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

  com.google.ads.googleads.v5.services.AgeRangeViewName resourceName2 =
      com.google.ads.googleads.v5.services.AgeRangeViewName.of("[CUSTOMER]", "[AGE_RANGE_VIEW]");
  AgeRangeView expectedResponse =
      AgeRangeView.newBuilder().setResourceName(resourceName2.toString()).build();
  mockAgeRangeViewService.addResponse(expectedResponse);
  AgeRangeViewName resourceName = AgeRangeViewName.of("[CUSTOMER]", "[AGE_RANGE_VIEW]");
  AgeRangeView actualResponse = client.getAgeRangeView(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockAgeRangeViewService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetAgeRangeViewRequest actualRequest = (GetAgeRangeViewRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, AgeRangeViewName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}