@@ -0,0 +1,1105 @@
+package com.groupon.jdbi.st4;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.skife.jdbi.v2.DBI;%0Aimport org.stringtemplate.v4.STGroupFile;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Apublic class FluentTest %7B%0A%0A    @Rule%0A    public H2Rule h2 = new H2Rule();%0A%0A    @Test%0A    public void testFoo() throws Exception %7B%0A        final DBI dbi = new DBI(this.h2.getDataSource());%0A        dbi.setStatementLocator(new ST4StatementLocator(new STGroupFile(%22com/groupon/jdbi/st4/DaoTest.InnerDao.sql.stg%22)));%0A        dbi.useHandle((h) -%3E %7B%0A            h.execute(%22createSomething%22);%0A            h.createStatement(%22insert%22)%0A             .define(%22table%22, %22something%22)%0A             .bind(%22id%22, 1)%0A             .bind(%22name%22, %22Ven%22)%0A             .execute();%0A%0A            final Something s = h.createQuery(%22findById%22)%0A                                 .bind(%22id%22, 1)%0A                                 .map((index, r, ctx) -%3E new Something(r.getInt(%22id%22), r.getString(%22name%22)))%0A                                 .first();%0A            assertThat(s).isEqualTo(new Something(1, %22Ven%22));%0A        %7D);%0A    %7D%0A%7D%0A

use locator with fluent api