### Question:
SqlRunner { public Result<Record> run(String sql) { try { Statement statement = connection.createStatement(); return DSL.using(new DefaultConfiguration()).fetch(statement.executeQuery(sql)); } catch (SQLException ex) { ex.printStackTrace(); throw new RuntimeException(); } } SqlRunner(String databaseName, Object sourceData); Result<Record> run(String sql);  }### Answer:
@Test public void run() throws Exception { sqlRunner = new SqlRunner("merchant_system", database); sql = "SELECT \n" + "\"products\".\"id\", \"sellers\".\"name\" \n" + "FROM \"merchant_system\".\"products\" \n" + "INNER JOIN \"merchant_system\".\"sellers\" \n" + "ON \"merchant_system\".\"sellers\".\"id\" = \"merchant_system\".\"products\".\"sellerId\" \n" + "WHERE \"sellers\".\"name\" = 'dengqinghua'"; Result<Record> result = sqlRunner.run(sql); assertThat(result.format(), is( "+----+-----------+" + "\n" + "| id|name |" + "\n" + "+----+-----------+" + "\n" + "|1024|dengqinghua|" + "\n" + "+----+-----------+" )); }