Aug 5, 2021
This is imprecise. `expected` is still available in `org.junit.Test`, but it never existed anywhere in `org.junit.jupiter`. Though it's a bad idea, you can mix JUnit 4 and JUnit 5. Of course it's better to use something like `assertThrows( )` if you have JUnit 5.