private void SetupBinaryTokenFile(Job job)
 {
     // Credentials in the job will not have delegation tokens
     // because security is disabled. Fetch delegation tokens
     // and store in binary token file.
     TestBinaryTokenFile.CreateBinaryTokenFile(job.GetConfiguration());
     job.GetConfiguration().Set(MRJobConfig.MapreduceJobCredentialsBinary, TestBinaryTokenFile
                                .binaryTokenFileName.ToString());
     // NB: the MRJobConfig.MAPREDUCE_JOB_CREDENTIALS_BINARY
     // key now gets deleted from config,
     // so it's not accessible in the job's config. So,
     // we use another key to pass the file name into the job configuration:
     job.GetConfiguration().Set(TestBinaryTokenFile.KeySecurityTokenFileName, TestBinaryTokenFile
                                .binaryTokenFileName.ToString());
 }
 internal MySleepJob(TestBinaryTokenFile _enclosing)
 {
     this._enclosing = _enclosing;
 }