@Test
    public void testReturningDmlPositionalParams() {
        Handle h = oracleExtension.getSharedHandle();

        try (Update update = h.createUpdate("insert into something(id, name) values (?, ?) returning id into ?")) {
            List<Integer> ids = update
                    .bind(0, 17)
                    .bind(1, "Brian")
                    .addCustomizer(returnParameters().register(2, OracleTypes.INTEGER))
                    .execute(returningDml())
                    .mapTo(int.class)
                    .list();

            assertThat(ids).containsExactly(17);
        }
    }
This test uses an oracle instance in a testcontainer.
oracle12/src/test/java/org/jdbi/v3/oracle12/TestOracleReturning.java