public TaskProfile getSQLTaskProfile(int taskId, String sql, String contentStyle, boolean retry,
            String startTime, String endTime, TaskStateEnum state, String cycleUnit, String timeZone) {
        DataConfig dataConfig = getSQLDataConfig(taskId, sql, contentStyle, retry, startTime, endTime,
                state, cycleUnit, timeZone);
        TaskProfile profile = TaskProfile.convertToTaskProfile(dataConfig);
        return profile;
    }
common environment setting up for test cases.
inlong-agent/agent-plugins/src/test/java/org/apache/inlong/agent/plugin/AgentBaseTestsHelper.java