```ruby
shared_examples_for "an instance supporting serialization" do
  it 'serializes correctly with to_yaml' do
    deserialized = YAML.load(subject.to_yaml)

    subject.attributes.each do |attr, value|
      expect(deserialized.send(attr)).to eq(value)
    end

    expect(deserialized.new_record?).to eq(subject.new_record?)
  end
end
```

Remove new_record? expectation since since its not implemented by us
user
```ruby
shared_examples_for "an instance supporting serialization" do
  it 'serializes correctly with to_yaml' do
    deserialized = YAML.load(subject.to_yaml)

    subject.attributes.each do |attr, value|
      expect(deserialized.send(attr)).to eq(value)
    end
  end
end
```
assistant