As mentioned in #194 (comment) it's a good idea to add integration tests which spin up a regtest authenticated electrum server.
At least what comes to my mind first is taking a look on how keycloak works, and probably use it's docker container images alongside testcontainers. However, it still needs further research