Use (given) when then style.

Now its possible to specify the exception after the code under test.
This allows to test exceptions using the common test sequence
(given when then, arange act assert).
Update parent POM from version 7 to 9.