@Test(timeout = 30_000)
public void testExternalActionFunctionError() {

    newReconciler(current -> Collections.emptyList());
    try {
        reconciler.apply(c -> {
            throw new RuntimeException("simulated error");
        }).block();
        fail("Expected error");
    } catch (Exception e) {
        assertThat(e).isInstanceOf(RuntimeException.class);
        assertThat(e.getMessage()).isEqualTo("simulated error");
    }
    assertThat(changesSubscriber.takeNext()).isNull();
}