lots of exercises in java... from https://github.com/exercism/java

hints.md 598B

Hints

This is the first exercise with tests that require you to throw an Exception. Exceptions 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:

  1. instances of a specified Java type;
  2. (optionally) initialized with a specified message.