$ mvn test -Dtest=PersonEndToEndTest [INFO] Running com.ankurm.resttestclient.PersonEndToEndTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.971 s -- in com.ankurm.resttestclient.PersonEndToEndTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 # theResponseIsCompressedOnTheWireButTheClientHidesIt asserts Content-Encoding is ABSENT from the # response RestTestClient.bindToServer() sees, against the same /api/persons endpoint # 05-curl-sees-real-gzip.txt just proved really does send Content-Encoding: gzip. It passes: the # default client hides it.