Have a unit test for this case. Perhaps where you do get_by_id has a .never() for verification.