The thrown exception is of type RuntimeException (not IllegalStateException).
RuntimeException
IllegalStateException