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

  GenerateForecastMetricsResponse expectedResponse =
      GenerateForecastMetricsResponse.newBuilder().build();
  mockKeywordPlanService.addResponse(expectedResponse);
  String keywordPlan = "keywordPlan-1589809217";
  GenerateForecastMetricsResponse actualResponse = client.generateForecastMetrics(keywordPlan);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockKeywordPlanService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GenerateForecastMetricsRequest actualRequest =
      (GenerateForecastMetricsRequest) actualRequests.get(0);
  Assert.assertEquals(keywordPlan, actualRequest.getKeywordPlan());
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}