Example code related to issue https://github.com/realm/realm-cocoa/issues/789