Fixes Jira unit test by throwing RestIOException with 401 error if the restricted field is present.