@Test
@SuppressWarnings("all")
public void getPhotoTest() {

  String downloadUrl = "downloadUrl1109408056";
  String thumbnailUrl = "thumbnailUrl1825632156";
  String shareLink = "shareLink-1788203942";
  long viewCount = 1534353675L;
  Photo expectedResponse =
      Photo.newBuilder()
          .setDownloadUrl(downloadUrl)
          .setThumbnailUrl(thumbnailUrl)
          .setShareLink(shareLink)
          .setViewCount(viewCount)
          .build();
  mockStreetViewPublishService.addResponse(expectedResponse);
  String photoId = "photoId-1274270136";
  PhotoView view = PhotoView.BASIC;
  Photo actualResponse = client.getPhoto(photoId, view);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<GeneratedMessageV3> actualRequests = mockStreetViewPublishService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetPhotoRequest actualRequest = (GetPhotoRequest) actualRequests.get(0);
  Assert.assertEquals(photoId, actualRequest.getPhotoId());
  Assert.assertEquals(view, actualRequest.getView());
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}