Checking exceptions
- Checking that [exceptions are correctly thrown] in JUnit 5 with the(https://junit.org/junit5/docs/current/user-guide/#writing-tests-assertions)
assertThrows
annotation
Testing that exceptions are correctly thrown
assertThrows
annotation