AS7-6864 Integration tests throw a StackOverflowError when using 'java -...

...client'