public static SubmitWorkRequestProto buildSubmitProtoRequest(int fragmentNumber,
                                                               String appId, int dagId, int vId, String dagName,
                                                               int dagStartTime, int attemptStartTime, int numSelfAndUpstreamTasks, int numSelfAndUpstreamComplete,
                                                               int withinDagPriority, Credentials credentials) throws IOException {
    return buildSubmitProtoRequest(fragmentNumber, 0,
            appId, dagId, vId, dagName, dagStartTime, attemptStartTime,
            numSelfAndUpstreamTasks, numSelfAndUpstreamComplete,
            withinDagPriority, credentials);
  }
Utils class for testing Llap Daemon.
llap-server/src/test/org/apache/hadoop/hive/llap/daemon/LlapDaemonTestUtils.java