@Test
@DisplayName("should dispose stored script if scripted flushed from redis")
void shouldReloadScriptIfFlushed() {

    RedisScriptLoader scriptLoader = new RedisScriptLoader(extension.getScriptingReactiveCommands(), "hello-world.lua", true);
    RedisScriptLoader.StoredScript storedScript = scriptLoader.storedScript().block(Duration.of(2, ChronoUnit.SECONDS));
    assertThat((String) extension.getScriptingReactiveCommands().evalsha(storedScript.getSha(), VALUE).blockFirst()).isEqualTo("hello world");
    scriptFlush();
    storedScript.dispose();
    storedScript = scriptLoader.storedScript().block(Duration.of(2, ChronoUnit.SECONDS));
    assertThat((String) extension.getScriptingReactiveCommands().evalsha(storedScript.getSha(), VALUE).blockFirst()).isEqualTo("hello world");
}