@BeforeEach
    void beforeEach() {
        JooqUtil.context(jobDbConnProvider, context -> {
            context.deleteFrom(JOB)
                    .where(JOB.NAME.like(JOB_NAME + "%"));
        });

        final List<String> names = JooqUtil.contextResult(jobDbConnProvider, context -> context
                .select(JOB.NAME)
                .from(JOB)
                .fetch(JOB.NAME));

        Assertions.assertThat(names)
                .isEmpty();
    }
More of a manual test, need DEBUG set on {@link SlowQueryExecuteListener}
stroom-app/src/test/java/stroom/db/util/TestSlowQueryExecuteListener.java