Add unit test, to test for ObjectNotFoundExceptions.