@Test
    public void testBindLocalDate() throws SQLException {
        ArgumentFactory factory = new JavaTimeArgumentFactory();

        LocalDate date = LocalDate.of(2001, 1, 1);

        Optional<Argument> optionalArgument = factory.build(LocalDate.class, date, null);
        assertThat(optionalArgument).isPresent();

        Argument argument = optionalArgument.get();
        argument.apply(5, stmt, StatementContextAccess.createContext());

        verify(stmt).setDate(5, java.sql.Date.valueOf(date));
    }
Check that {@link java.time.LocalDate} arguments are bound to corresponding
{@link java.sql.Date} values.
core/src/test/java/org/jdbi/v3/core/argument/TestLocalDateArgument.java