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

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