Medium Testing Reactive Code
Verify Error Signals
Write a StepVerifier test for a Flux that emits "OK" then throws an IllegalStateException("Boom"). Verify the element, then verify the error. Print "Error test passed!".
expectError() verifies that the stream terminates with an error.
Expected
Error test passed!
Main.kt