(--------)
You can slightly change your example like this:
participant myclass activate myclass myclass -> class2: test() myclass -> myclass: call1() activate myclass myclass -> class2: test() deactivate myclass