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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockKeywordPlanAdGroupKeywordService.addException(exception);
  try {
    KeywordPlanAdGroupKeywordName resourceName =
        KeywordPlanAdGroupKeywordName.of("[CUSTOMER]", "[KEYWORD_PLAN_AD_GROUP_KEYWORD]");
    client.getKeywordPlanAdGroupKeyword(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}