Statement { public ExpandedStatement expand() { return expand(Collections.emptyMap()); } private  Statement(final String sql, final List<Map.Entry<String, Integer>> mappings); Statement validateParameters(final String... availableParameters); ExpandedStatement expand(); ExpandedStatement expand(final Consumer<Map<String, Object>> mapBuilder); ExpandedStatement expand(final Map<String, Object> parameters); @Override String toString(); static Statement statement(final String sql, final Object... values);  }
@Test public void testPlainYamlStillWorksForStatementConfig() { final String yaml = "read: SELECT 1"; final var cfg = StatementConfiguration.empty() .overrideWith(new ByteArrayInputStream(yaml.getBytes(StandardCharsets.UTF_8)), false); assertEquals("SELECT 1", cfg.getRequiredStatement("read").expand().getSql()); }