You have to test it against the real service (docker-compose one is OK). I don’t think unit testing work for this scenario.