### Question:
SQLUtilities { public static String quoteIdentifier(String s) { if (s == null) { return null; } StringBuilder buff = null; buff = new StringBuilder(); for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if (c == '"' && i != 0 && i != s.length() - 1) { buff.append(c); } buff.append(c); } String result = buff.toString(); return result; }  static String quoteIdentifier(String s); static List<ITableInfo> getDeletionOrder(List<ITableInfo> tables, SQLDatabaseMetaData md,
		ProgressCallBack callback); static List<ITableInfo> getInsertionOrder(List<ITableInfo> tables, SQLDatabaseMetaData md,
		ProgressCallBack callback); static ForeignKeyInfo[] getImportedKeys(ITableInfo ti, SQLDatabaseMetaData md); static ForeignKeyInfo[] getExportedKeys(ITableInfo ti, SQLDatabaseMetaData md); static List<String> getExtFKParents(SQLDatabaseMetaData md, List<ITableInfo> tables); static List<String> getExtFKChildren(SQLDatabaseMetaData md, List<ITableInfo> tables); static void closeResultSet(ResultSet rs); static void closeResultSet(ResultSet rs, boolean closeStatement); static void closeStatement(Statement stmt);  }### Answer:
@Test public void testNullQuoteIdentifier() { Assert.assertNull(SQLUtilities.quoteIdentifier(null)); }
@Test public void testQuoteIdentifierWithEmbeddedQuotes() { String tableNameWithAnEmbeddedQuote = "foo\"bar"; String newTableName = SQLUtilities.quoteIdentifier(tableNameWithAnEmbeddedQuote); assertEquals("foo\"\"bar", newTableName); tableNameWithAnEmbeddedQuote = "\"foo\"bar\""; newTableName = SQLUtilities.quoteIdentifier(tableNameWithAnEmbeddedQuote); assertEquals("\"foo\"\"bar\"", newTableName); String tableName = "MyTable"; String quotedTableName = SQLUtilities.quoteIdentifier(tableName); assertEquals(tableName, quotedTableName); }