@Test
public void deleteGlobalTransactionDO() throws SQLException {

    GlobalTransactionDO globalTransactionDO = new GlobalTransactionDO();
    globalTransactionDO.setXid("abc-123:555");
    globalTransactionDO.setApplicationData("abc=5454");
    globalTransactionDO.setTransactionServiceGroup("abc");
    globalTransactionDO.setTransactionName("test");
    globalTransactionDO.setTransactionId(12345);
    globalTransactionDO.setTimeout(20);
    globalTransactionDO.setBeginTime(System.currentTimeMillis());
    globalTransactionDO.setApplicationId("test");
    globalTransactionDO.setStatus(1);
    boolean ret = logStoreDataBaseDAO.insertGlobalTransactionDO(globalTransactionDO);
    Assertions.assertTrue(ret);
    //delete
    Assertions.assertTrue(logStoreDataBaseDAO.deleteGlobalTransactionDO(globalTransactionDO));
    //check
    String sql = "select * from global_table where xid= 'abc-123:555'";
    Connection conn = null;
    try{
        conn = dataSource.getConnection();
        ResultSet rs = conn.createStatement().executeQuery(sql);
        if(rs.next()){
            Assertions.assertTrue(false);
        }else{
            Assertions.assertTrue(true);
        }
        rs.close();
    }finally {
        if(conn != null){
            conn.close();
        }
    }
}