You should probably use some other method for checking proper exception handling here.

Here are some suggestions: https://github.com/junit-team/junit/wiki/Exception-testing
I prefer the ExpectedException rule :)