/// <summary>
 /// Terminates a job
 /// TODO: Replace with terminate Job client method when it exists.
 /// </summary>
 public static void TerminateJob(BatchAccountContext context, string workItemName, string jobName)
 {
     if (HttpMockServer.Mode == HttpRecorderMode.Record)
     {
         using (IWorkItemManager wiManager = context.BatchOMClient.OpenWorkItemManager())
         {
             wiManager.TerminateJob(workItemName, jobName);
         }
     }
 }