@Test
    public void testSaveStreamTransform() {
        TransformRequest request = new TransformRequest();
        request.setTransformName(TRANSFORM_NAME);
        request.setTransformType(TransformType.FILTER.getType());
        request.setTransformDefinition("{}");
        request.setPreNodeNames(TRANSFORM_NAME + "_pre");
        request.setPostNodeNames(TRANSFORM_NAME + "_post");
        request.setInlongStreamId(GLOBAL_STREAM_ID);
        request.setInlongGroupId(GLOBAL_GROUP_ID);
        StreamTransformEntity entity = CommonBeanUtils.copyProperties(request, StreamTransformEntity::new);
        entity.setCreator(GLOBAL_OPERATOR);
        entity.setModifier(GLOBAL_OPERATOR);
        Date now = new Date();
        entity.setCreateTime(now);
        entity.setModifyTime(now);
        entity.setVersion(InlongConstants.INITIAL_VERSION);
        entity.setIsDeleted(InlongConstants.UN_DELETED);
        int index = transformEntityMapper.insert(entity);
        Assertions.assertEquals(1, index);

        List<TransformResponse> responses = streamTransformService.listTransform(GLOBAL_GROUP_ID, GLOBAL_STREAM_ID);
        Assertions.assertEquals(1, responses.size());
    }
Test class for save stream transform.
inlong-manager/manager-service/src/test/java/org/apache/inlong/manager/service/transform/StreamTransformServiceTest.java