How to check if the object leads to memory leak with autotests?
I have an object, that have internal logic related to events subscription.
I want to write an autotest, that checks if the object can be collected by GC after certain steps.
For example: