This is the first exercise with tests that require you to throw an
Exception
. Exception
s are typically thrown to
indicate that a program has encountered an unexpected input or state.
We use JUnit's ExpectedException
rule throughout the track to verify that the exceptions you throw
are: