Question on how to write XCTest for an app used CallKit.

I'm developing a calling app used CallKit and PushKit. I'm thinking of creating an XC Test to ensure the quality of my app. However, I don't know how to write an XCTest for an app that uses CallKit. Could you help me if I know anything?

I especially want to know about: ・I want to detect the event when tapped Accept on the CallKit screen that is displayed when an incoming call arrives. ・Similarly, I want to detect the event when tapped Decline.

Question on how to write XCTest for an app used CallKit.
 
 
Q