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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockMerchantCenterLinkService.addException(exception);
  try {
    MerchantCenterLinkName resourceName =
        MerchantCenterLinkName.of("[CUSTOMER]", "[MERCHANT_CENTER_LINK]");
    client.getMerchantCenterLink(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}