SqlIdentifierQuoter { @VisibleForTesting @NonNull static String getIdentifierQuoteString(@NonNull DatabaseMetaData metaData) throws SQLException { String identifierQuoteString = metaData.getIdentifierQuoteString(); return !isIdentifierQuotingSupported(identifierQuoteString) ? "\"" : identifierQuoteString; }  @NonNull abstract String quote(@NonNull String identifier, boolean force); @NonNull static SqlIdentifierQuoter create(@NonNull DatabaseMetaData metaData);  }
@Test public void testGetIdentifierQuoteString() throws SQLException { try (Connection conn = DriverManager.getConnection("jdbc:hsqldb:res:mydb", "sa", "")) { assertEquals("\"", SqlIdentifierQuoter.getIdentifierQuoteString(conn.getMetaData())); } }