Renamed test methods and made use of AssertJ assertions to verify exceptions being thrown. Original pull request: #328.