### Question:
QueryBuilder implements Closeable { public void setSuffix(String suffix) throws Exception { if (suffix.indexOf('?')!=-1) { throw new Exception("Must NOT specify a ? param!"); } this.suffix = suffix; } QueryBuilder(JdbcFactory factory, String prefix);  QueryBuilder(JdbcFactory factory, String prefix, boolean whereAdded); void setSuffix(String suffix); @Override String toString(); String getBatchedQuery(int batch); String getQuery(); boolean isEmpty(); List<QueryClause> getClauses(); void addInClause(String field, Collection<?> values, int sqlType); void addBatchedInClause(String field, List<?> values, int sqlType); void addInLikeClause(String field, Collection<String> values, boolean useInIfPossible); void addNotInClause(String field, Collection<?> values, int sqlType); void addClause(String clause, Object value, int sqlType); void addClause(String clause, Object value); void addFieldClause(String fieldName, Object value, int sqlType); void addFieldClause(String fieldName, Object value); void addNoParamClause(String clause); void addClause(QueryClause clause); void addClauses(Collection<QueryClause> clauses); ResultSet execute(); Map<K,V> execute(ResultMapper<K,V> processor); void execute(ResultMapper<K,V> processor, Map<K,V> results); List<T> execute(ResultProcessor<T> processor); void execute(ResultProcessor<T> processor, Collection<T> results); @Override void close();  }### Answer:
@Test public void testSetSuffix() throws Exception { System.out.println("setSuffix"); String suffix = "order by 1"; QueryBuilder builder = new QueryBuilder(jdbc,SELECT_PREFIX,false); builder.setSuffix(suffix); String expected = SELECT_PREFIX+" "+suffix; assertEquals(builder.getQuery(), expected); }