MySQLKeywordChecker implements KeywordChecker { @Override public String checkAndReplace(String fieldOrTableName) { return check(fieldOrTableName) ? "`" + fieldOrTableName + "`" : fieldOrTableName; } private  MySQLKeywordChecker(); static KeywordChecker getInstance(); @Override boolean check(String fieldOrTableName); @Override String checkAndReplace(String fieldOrTableName);  }
@Test public void testCheckAndReplace() { KeywordChecker keywordChecker = KeywordCheckerFactory.getKeywordChecker(JdbcConstants.MYSQL); Assertions.assertEquals("`desc`", keywordChecker.checkAndReplace("desc")); }