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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockStreetViewPublishService.addException(exception);
  try {
    PhotoView view = PhotoView.BASIC;
    String filter = "filter-1274492040";
    client.listPhotos(view, filter);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}