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

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