@Test
@SuppressWarnings("all")
public void generateForecastCurveExceptionTest() throws Exception {

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockKeywordPlanService.addException(exception);
  try {
    String keywordPlan = "keywordPlan-1589809217";
    client.generateForecastCurve(keywordPlan);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}