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

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