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

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