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

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