private void testDeleteForNotEmptyIds() {
        List<String> ids = Lists.newArrayList("id1", "id3");
        int count = metaDataService.deleteByIdsAndNamespaceId(ids, SYS_DEFAULT_NAMESPACE_ID);
        Assertions.assertEquals(0, count, "The count of delete should be 0.");
        when(metaDataMapper.selectByIdListAndNamespaceId(ids, SYS_DEFAULT_NAMESPACE_ID)).thenReturn(Arrays.asList(MetaDataDO.builder().build(), MetaDataDO.builder().build()));
        when(metaDataMapper.deleteByIdListAndNamespaceId(ids, SYS_DEFAULT_NAMESPACE_ID)).thenReturn(2);
        count = metaDataService.deleteByIdsAndNamespaceId(ids, SYS_DEFAULT_NAMESPACE_ID);
        Assertions.assertEquals(2, count,
                "The count of delete should be 2.");
    }
Cases where get a not empty id list.
shenyu-admin/src/test/java/org/apache/shenyu/admin/service/MetaDataServiceTest.java