code: public CloudTask getTask(String jobId, String taskId, DetailLevel detailLevel,
              Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException {
          TaskGetOptions options = new TaskGetOptions();
          BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors);
          bhMgr.appendDetailLevelToPerCallBehaviors(detailLevel);
          bhMgr.applyRequestBehaviors(options);
  
          return this.parentBatchClient.protocolLayer().tasks().get(jobId, taskId, options);
      }
docs: Gets the specified {@link CloudTask}.
  
  @param jobId
  The ID of the job containing the task.
  @param taskId
  The ID of the task.
  @param detailLevel
  A {@link DetailLevel} used for controlling which properties are
  retrieved from the service.
  @param additionalBehaviors
  A collection of {@link BatchClientBehavior} instances that are
  applied to the Batch service request.
  @return A {@link CloudTask} containing information about the specified Azure
  Batch task.
  @throws BatchErrorException
  Exception thrown when an error response is received from the
  Batch service.
  @throws IOException
  Exception thrown when there is an error in
  serialization/deserialization of data sent to/received from the
  Batch service.