public String getDefaultCharset(Connection connection) throws SQLException {
    return sqlExecutor.selectSingleString(connection, "select pg_encoding_to_char(encoding) from pg_database where datname = current_database()");
  }
@Test
  public void test_getDefaultCharset() throws SQLException {
    answerSelect("latin");

    assertThat(underTest.getDefaultCharset(connection)).isEqualTo("latin");
  }