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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockThirdPartyAppAnalyticsLinkService.addException(exception);
  try {
    RegenerateShareableLinkIdRequest request =
        RegenerateShareableLinkIdRequest.newBuilder().build();
    client.regenerateShareableLinkId(request);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}