It's a test, so I guess it's OK although it would be the best to fail the test with the caught exception.