### Question:
PreparedSqlBuilder implements SqlContext { public void cutBackSql(int length) { rawSql.setLength(rawSql.length() - length); formattedSql.setLength(formattedSql.length() - length); } PreparedSqlBuilder(Config config, SqlKind kind, SqlLogType sqlLogType); void appendSql(String sql); void cutBackSql(int length); void appendParameter(InParameter<BASIC> parameter); PreparedSql build(Function<String, String> commenter);  }### Answer:
@Test public void testCutBackSql() { PreparedSqlBuilder builder = new PreparedSqlBuilder(config, SqlKind.SELECT, SqlLogType.FORMATTED); builder.appendSql("select * from aaa where name = "); builder.cutBackSql(14); PreparedSql sql = builder.build(Function.identity()); assertEquals("select * from aaa", sql.toString()); }