Use `ignoreExpectedException()` here. Otherwise, it will be flagged as 'empty catch' by code quality checking tools.