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

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