You can test it using the `raises()` function.