private void testCreateOrUpdateForInsert() {
        when(metaDataDTO.getId()).thenReturn(null);
        when(metaDataMapper.insert(any())).thenReturn(1);
        when(metaDataMapper.pathExisted(any(), any())).thenReturn(null);
        String msg = metaDataService.createOrUpdate(metaDataDTO);
        assertEquals(ShenyuResultMessage.CREATE_SUCCESS, msg);
    }
Cases where check passed and insert operation.<br>
The stub declared in createOrUpdateCase1 will not be repeated.
shenyu-admin/src/test/java/org/apache/shenyu/admin/service/MetaDataServiceTest.java