@Override
    protected Result check() throws Exception {
        return timeBoundHealthCheck.check(() -> {
                try (Handle handle = jdbi.open()) {
                    if (validationQuery.isPresent()) {
                        handle.execute(validationQuery.get());
                    } else if (!handle.getConnection().isValid(validationQueryTimeout)) {
                        return Result.unhealthy("Connection::isValid returned false.");
                    }
                    return Result.healthy();
                }
            }
        );
    }
@Test
    void tesHealthyAfterWhenMissingValidationQuery() throws Exception {
        when(connection.isValid(anyInt())).thenReturn(true);

        HealthCheck.Result result = healthCheck().check();

        assertThat(result.isHealthy()).isTrue();
        verify(connection).isValid(anyInt());
    }