@Override
  @SuppressWarnings({ "unchecked", "TypeParameterUnusedInFormals" })
  public <T, J> T createTestTaskAttemptContext(J job, String taskId) {
    Job j = (Job) job;
    return (T) new TaskAttemptContextImpl(j.getConfiguration(), TaskAttemptID.forName(taskId));
  }
Returns a TaskAttemptContext instance created from the given parameters.
@param job    an instance of o.a.h.mapreduce.Job
@param taskId an identifier for the task attempt id. Should be parsable by
              {@link TaskAttemptID#forName(String)}
@return a concrete TaskAttemptContext instance of o.a.h.mapreduce.TaskAttemptContext
hbase-hadoop-compat/src/test/java/org/apache/hadoop/hbase/HadoopShimsImpl.java