    @Test
    public void registersAHealthCheck() throws Exception {

        jooqBundle.run(new DropwizardConfig(), environment);

        ArgumentCaptor<JooqHealthCheck> captor = ArgumentCaptor.forClass(JooqHealthCheck.class);
        verify(healthChecks).register(eq(DEFAULT_NAME), captor.capture());

        assertThat(captor.getValue().getValidationQuery()).isEqualTo(validationQueryPrimary);
    }