failing gracefully is fine. You can just not test the result and add a comment that you are testing that there is no exception.