WebClientIntegrationTests#doMalformedChunkedResponseTest implementation does not enforce that the value of the port used by the client has been set from serverSocket.getLocalPort() in the other thread created, leading to failed malformedResponseChunksOnBodilessEntity and malformedResponseChunksOnEntityWithBody tests in some conditions, like on my computer. This should be fixed to make the test more robust.