concept next listing in category java

This is an excerpt from Manning's book Java Testing with Spock.
The next listing presents a questionable JUnit test (I see these all the time). It contains cryptic method names that don’t describe what’s being tested.
In all Spock tests that I’ve shown you so far, the expected result is either a set of assertions or the verification of object interactions. But in some cases, the “expected” result is throwing an exception. If you’re developing a library framework, for example, you have to decide what exceptions will be thrown to the calling code and verify this decision with a Spock test. The next listing demonstrates the capturing of an exception.
Spock allows you to knowingly skip one or more tests and even provides you with the ability to give a reason for skipping that test (see the next listing).