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

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