Is it possible to create automate tests for Sign in with Apple?

Is it possible to create automated tests for Sign in with Apple?

We would like to write an e2e tests for different cases.

Sign in with Apple required device/simulator to be connected with Apple Id, which requires 2fa. Is there some API in the XCTest framework to mock this?