### Question:
MySQLUndoLogManager extends AbstractUndoLogManager { @Override public int deleteUndoLogByLogCreated(Date logCreated, int limitRows, Connection conn) throws SQLException { try (PreparedStatement deletePST = conn.prepareStatement(DELETE_UNDO_LOG_BY_CREATE_SQL)) { deletePST.setDate(1, new java.sql.Date(logCreated.getTime())); deletePST.setInt(2, limitRows); int deleteRows = deletePST.executeUpdate(); if (LOGGER.isDebugEnabled()) { LOGGER.debug("batch delete undo log size {}", deleteRows); } return deleteRows; } catch (Exception e) { if (!(e instanceof SQLException)) { e = new SQLException(e); } throw (SQLException) e; } }  @Override int deleteUndoLogByLogCreated(Date logCreated, int limitRows, Connection conn);  }### Answer:
@Test public void testDeleteUndoLogByLogCreated() throws SQLException { Assertions.assertEquals(0, undoLogManager.deleteUndoLogByLogCreated(new Date(), 3000, dataSource.getConnection())); Assertions.assertDoesNotThrow(() -> undoLogManager.deleteUndoLogByLogCreated(new Date(), 3000, connectionProxy)); }