@Test
    public void deleteByPrimaryKeyWithOtherTenant() {
        InlongGroupEntity entity = createGroupEntity();
        groupEntityMapper.insert(entity);
        setOtherTenant(ANOTHER_TENANT);
        int delete = groupEntityMapper.deleteByPrimaryKey(entity.getId());
        setOtherTenant(PUBLIC_TENANT);
        InlongGroupEntity select = groupEntityMapper.selectByGroupId(entity.getInlongGroupId());
        Assertions.assertEquals(0, delete);
        Assertions.assertNotNull(select);
    }
Inlong group entity mapper test for {@link InlongGroupEntityMapper}
inlong-manager/manager-dao/src/test/java/org/apache/inlong/manager/dao/mapper/InlongGroupEntityMapperTest.java