Statement { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("sql", this.sql) .add("mappings", this.mappings) .toString(); } 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 testObjectCreationRejectedMapValue(@TempDir final Path tempDir) { final Path markerFile = tempDir.resolve("testObjectCreationRejectedMapValue.marker"); final String yaml = "read: !!java.io.FileOutputStream [" + markerFile.toAbsolutePath().toString() + "]"; assertNoMarkerFile(markerFile, yaml); }
@Test public void testObjectCreationRejectedPlainValue(@TempDir final Path tempDir) { final Path markerFile = tempDir.resolve("testObjectCreationRejectedPlainValue.marker"); final String yaml = "!!java.io.FileOutputStream [" + markerFile.toAbsolutePath().toString() + "]"; assertNoMarkerFile(markerFile, yaml); }