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

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