@Test
    public void testDefineProcess() throws CloneNotSupportedException {
        WorkflowProcess process = createGroupWorkflowDefinition.defineProcess();
        WorkflowProcess cloneProcess1 = process.clone();
        WorkflowProcess cloneProcess2 = cloneProcess1.clone();
        Assertions.assertNotSame(cloneProcess2, cloneProcess1);
        Assertions.assertNotNull(process.getTaskByName("InitMQ"));
        Assertions.assertNotNull(process.getTaskByName("InitSort"));
        Assertions.assertNotNull(process.getTaskByName("InitSchedule"));
        Assertions.assertEquals(3, process.getNameToTaskMap().size());
    }
Test class for workflow define process.
inlong-manager/manager-service/src/test/java/org/apache/inlong/manager/service/workflow/group/CreateGroupWorkflowDefinitionTest.java