How to test server-to-server (S2S) notifications

I don't know how Apple expects us to verify that the code that handles server-to-server notifications is working correctly. I can't think of how to test that the full cycle of operation is correct, because I don't want to test the code directly in production, and in the sandbox not all notifications are handled.

For example, I don't know how to simulate that a user asks AppleCare to revoke a subscription.

On the other hand, in the test purchases I have made I have received DID_RECOVER notifications, which are not supposed to be available (as indicated in https://developer.apple.com/documentation/appstoreservernotifications/notification_type#3694879 ), but also the DID_RECOVER is not preceded by a notification of failure to charge (DID_FAIL_TO_RENEW).

Does anyone have any suggestions on how to test?

Thank you very much,
Oscar
Hello!

Has anyone know of any tool to generate mocked notifications that can be sent (in the right order, at different moments) to the URL that handles the notification, in order to test that our code behaves as expected? Having I integrated the Google notifications in our system (where you can test all the notifications), I'm unpleasantly surprised that Apple system doesn't allow to test all the possible notifications in Sandbox, and that the order of sent notifications isn't the expected one (as I told in the previous message).

Due to the fact that some notifications can't be generated in the Sandbox, I don't have a complete collections of notifications that let us to test our code. Does anybody know how to get such a test collection?
How to test server-to-server (S2S) notifications
 
 
Q