I use Spring Boot with Spock as a testing framework (this is established, I cannot change tools here). I faced a situation where I have to integration test a behavior depend