This can be written as:

```objc
expect(a.relatedObject).notTo.equal(b.relatedObject);
```