protected List<LockDO> convertToLockDO(List<RowLock> locks) {
        List<LockDO> lockDOs = new ArrayList<>();
        if (CollectionUtils.isEmpty(locks)) {
            return lockDOs;
        }
        for (RowLock rowLock : locks) {
            LockDO lockDO = convertToLockDO(rowLock);
            lockDOs.add(lockDO);
        }
        return lockDOs;
    }
@Test
    public void testConvertToLockDO() {
        List<LockDO> lockDOs = getLockDOS();

        // Assert that the converted LockDO objects have the correct values
        Assertions.assertEquals(2, lockDOs.size());

        LockDO lockDO1 = lockDOs.get(0);
        Assertions.assertEquals(1, lockDO1.getBranchId());
        Assertions.assertEquals("123", lockDO1.getPk());
        Assertions.assertEquals("resource1", lockDO1.getResourceId());
        Assertions.assertEquals("xid1", lockDO1.getXid());
        Assertions.assertEquals(1122L, lockDO1.getTransactionId());
        Assertions.assertEquals("table1", lockDO1.getTableName());

        LockDO lockDO2 = lockDOs.get(1);
        Assertions.assertEquals(2, lockDO2.getBranchId());
        Assertions.assertEquals("456", lockDO2.getPk());
        Assertions.assertEquals("resource2", lockDO2.getResourceId());
        Assertions.assertEquals("xid2", lockDO2.getXid());
        Assertions.assertEquals(3344L, lockDO2.getTransactionId());
        Assertions.assertEquals("table2", lockDO2.getTableName());
    }