Mock get_object.