@Test
    public void testCharSequenceParms() {
        final Handle h = h2Extension.getSharedHandle();

        // create list of CharSequence types
        final List<CharSequence> names = Arrays.asList(
                String.valueOf(String.class.getSimpleName()),
                new StringBuffer(StringBuffer.class.getSimpleName()),
                new StringBuilder(StringBuilder.class.getSimpleName()),
                new CharSequence() { // anonymous inner class implementing CharSequence
                    private final CharSequence mySeq = "CharSequence";
                    @Override
                    public int length() {
                        return mySeq.length();
                    }
                    @Override
                    public char charAt(final int index) {
                        return mySeq.charAt(index);
                    }
                    @Override
                    public CharSequence subSequence(final int start, final int end) {
                        return mySeq.subSequence(start, end);
                    }
                    @Override
                    public String toString() {
                        return mySeq.toString();
                    }
                });
        for (int i = 0; i < names.size(); i++) {
            // insert CharSequence into name column of type VARCHAR
            h.execute("insert into something (id, name) values (?, ?)", i, names.get(i));
        }

        // read names back from database into Strings
        final List<String> rs1 = h.createQuery("select name from something order by id")
                .mapTo(String.class).list();
        assertThat(rs1).containsExactly("String", "StringBuffer", "StringBuilder", "CharSequence");

        // read names back from database into bean with CharSequence member
        final List<CharSeqName> rs2 = h.createQuery("select name from something order by id")
                .mapToBean(CharSeqName.class).list();
        assertThat(rs2).containsExactly(
                CharSeqName.of("String"), CharSeqName.of("StringBuffer"),
                CharSeqName.of("StringBuilder"), CharSeqName.of("CharSequence"));
    }
Tests that {@link CharSequence} parameters behave as if they were Strings.
core/src/test/java/org/jdbi/v3/core/statement/TestQueries.java