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

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