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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockKeywordPlanCampaignKeywordService.addException(exception);
  try {
    KeywordPlanCampaignKeywordName resourceName =
        KeywordPlanCampaignKeywordName.of("[CUSTOMER]", "[KEYWORD_PLAN_CAMPAIGN_KEYWORD]");
    client.getKeywordPlanCampaignKeyword(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}