source: class StreetViewPublishServiceClientTest {
  
    private static MockStreetViewPublishService mockStreetViewPublishService;
    private static MockServiceHelper serviceHelper;
    private StreetViewPublishServiceClient client;
    private LocalChannelProvider channelProvider;
  
    @Test
    @SuppressWarnings("all")
    public void batchDeletePhotosTest() {
  
target:     BatchDeletePhotosResponse expectedResponse = BatchDeletePhotosResponse.newBuilder().build();
      mockStreetViewPublishService.addResponse(expectedResponse);
  
      List<String> photoIds = new ArrayList<>();
  
      BatchDeletePhotosResponse actualResponse = client.batchDeletePhotos(photoIds);
      Assert.assertEquals(expectedResponse, actualResponse);
  
      List<GeneratedMessageV3> actualRequests = mockStreetViewPublishService.getRequests();
      Assert.assertEquals(1, actualRequests.size());
      BatchDeletePhotosRequest actualRequest = (BatchDeletePhotosRequest) actualRequests.get(0);
  
      Assert.assertEquals(photoIds, actualRequest.getPhotoIdsList());
      Assert.assertTrue(
          channelProvider.isHeaderSent(
              ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
              GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    }
  
  }