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

    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
    mockPhotosLibrary.addException(exception);

    try {
      String shareToken = "shareToken407816601";

      client.leaveSharedAlbum(shareToken);
      Assert.fail("No exception raised");
    } catch (InvalidArgumentException e) {
      // Expected exception
    }
  }