public static LlapDaemonProtocolProtos.QueryCompleteRequestProto buildQueryCompleteRequest(String appId, int dagId) {
    LlapDaemonProtocolProtos.QueryIdentifierProto qrId = LlapDaemonProtocolProtos.QueryIdentifierProto.newBuilder()
        .setApplicationIdString(appId)
        .setAppAttemptNumber(0)
        .setDagIndex(dagId)
        .build();
    return LlapDaemonProtocolProtos.QueryCompleteRequestProto.newBuilder()
        .setQueryIdentifier(qrId)
        .setDeleteDelay(0)
        .build();
  }
Utils class for testing Llap Daemon.
llap-server/src/test/org/apache/hadoop/hive/llap/daemon/LlapDaemonTestUtils.java