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

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