Mocking aside it can't work without a serializer so it'll blow up regardless. Just make sure it can never be set to null and don't worry about this case.