Help needed for writing a test for Ticket #4795:

Hi All,

I want to write unit tests to get the following patch into the core.
Ticket #4795: ARs in the session have their associations persisted as

I’m quite new to testing so I don’t have the slightest idea how I can
write test to verify the patch. If someone can push me in the right
direction, I’ll invest some time to write tests.

Jeroen van Doorn