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

  Empty expectedResponse = Empty.newBuilder().build();
  Operation resultOperation =
      Operation.newBuilder()
          .setName("runBatchJobTest")
          .setDone(true)
          .setResponse(Any.pack(expectedResponse))
          .build();
  mockBatchJobService.addResponse(resultOperation);
  BatchJobName resourceName = BatchJobName.of("[CUSTOMER]", "[BATCH_JOB]");
  Empty actualResponse = client.runBatchJobAsync(resourceName).get();
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockBatchJobService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  RunBatchJobRequest actualRequest = (RunBatchJobRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, BatchJobName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}