Hey Marcio - that's a super interesting question. The way I tackled this concern in the past is though a different type of
test - which is a Contract Live Test. This is a live test (a test that hits the API) that doesn't evolve with the standard codebase but remains separate. I've done it both with raw JSON (with mixed results) as well as with a good release procedure in place, and using a set version of the jar that holds the DTOs.
I'm not planning to cover that in the course other than a quick example in Course 7 - but I am collecting requests for a bonus course - course 10 - so I'm adding that in.
Cheers,
Eugen.