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

  com.google.ads.googleads.v5.services.BatchJobName resourceName2 =
      com.google.ads.googleads.v5.services.BatchJobName.of("[CUSTOMER]", "[BATCH_JOB]");
  BatchJob expectedResponse =
      BatchJob.newBuilder().setResourceName(resourceName2.toString()).build();
  mockBatchJobService.addResponse(expectedResponse);
  BatchJobName resourceName = BatchJobName.of("[CUSTOMER]", "[BATCH_JOB]");
  BatchJob actualResponse = client.getBatchJob(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockBatchJobService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetBatchJobRequest actualRequest = (GetBatchJobRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, BatchJobName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}