@Test(dataProvider = "ApiVersionDS")
public void createAndCancelJobTest(ApiVersionProvider provider)
throws ZencoderErrorResponseException {
ZencoderAPIVersion apiVersion = provider.getApiVersion();
IZencoderClient client = createClient(apiVersion);
ZencoderJob job = new ZencoderJob(TEST_VIDEO_URL);
job.setZencoderRegion(ZENCODER_REGION);
job.setTest(true);
client.createJob(job);
int jobId = job.getJobId();
Assert.assertTrue(jobId >= 0);
jobMap.put(apiVersion, jobId);
boolean canceled = client.cancelJob(job);
Assert.assertTrue(canceled);
}