Class groovyx.net.http.ApacheHttpBuilderSpec

6

tests

0

failures

0

ignored

7.198s

duration

100%

successful

Tests

Test Duration Result
FromServer hasBody should return false when there is no content 0.383s passed
FromServer hasBody should return true when there is content 0.166s passed
Sending/Receiving JSON Data (POST) 0.510s passed
access to client implementation 0.182s passed
client customization 0.272s passed
client-specific configuration 5.685s passed

Standard output

19:15:53.145 [Test worker] DEBUG ersatz.jboss.logging - Logging Provider: ersatz.jboss.logging.Slf4jLoggerProvider
19:15:53.272 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@6fea373b
19:15:53.332 [Test worker] INFO ersatz.xnio - XNIO version 3.3.8.Final
19:15:53.443 [Test worker] INFO ersatz.xnio.nio - XNIO NIO Implementation Version 3.3.8.Final
19:15:53.765 [XNIO-1 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-1', selector sun.nio.ch.EPollSelectorImpl@1b5b5f4d
19:15:53.783 [XNIO-1 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-2', selector sun.nio.ch.EPollSelectorImpl@4ce6909c
19:15:53.794 [XNIO-1 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-3', selector sun.nio.ch.EPollSelectorImpl@603fbe8a
19:15:53.815 [XNIO-1 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-4', selector sun.nio.ch.EPollSelectorImpl@421f73cf
19:15:53.839 [XNIO-1 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-5', selector sun.nio.ch.EPollSelectorImpl@689ffe11
19:15:53.859 [XNIO-1 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-6', selector sun.nio.ch.EPollSelectorImpl@749b8be9
19:15:53.890 [XNIO-1 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-7', selector sun.nio.ch.EPollSelectorImpl@17c2c73d
19:15:53.910 [XNIO-1 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-8', selector sun.nio.ch.EPollSelectorImpl@6e120068
19:15:53.932 [XNIO-1 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 Accept', selector sun.nio.ch.EPollSelectorImpl@6e5b299
19:15:53.944 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
19:15:55.604 [Test worker] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
19:15:55.638 [Test worker] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
19:15:55.641 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Get connection for route {}->http://localhost:34603
19:15:55.677 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:34603
19:15:55.681 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:34603
19:15:55.695 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:56568<->127.0.0.1:34603
19:15:55.695 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request GET /foo HTTP/1.1
19:15:55.695 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
19:15:55.715 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
19:15:55.720 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 >> GET /foo HTTP/1.1
19:15:55.721 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 >> Host: localhost:34603
19:15:55.722 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 >> Connection: Keep-Alive
19:15:55.722 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 >> User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_222)
19:15:55.723 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 >> Accept-Encoding: gzip,deflate
19:15:55.724 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "GET /foo HTTP/1.1[\r][\n]"
19:15:55.724 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "Host: localhost:34603[\r][\n]"
19:15:55.725 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
19:15:55.727 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_222)[\r][\n]"
19:15:55.727 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
19:15:55.728 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "[\r][\n]"
19:15:55.972 [XNIO-1 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { GET /foo (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip,deflate], User-Agent=[Apache-HttpClient/4.5.2 (Java/1.8.0_222)], Host=[localhost:34603]}, cookies=[:]): <empty> }
19:15:56.147 [XNIO-1 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
19:15:56.248 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"
19:15:56.249 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 << "Content-Encoding: gzip[\r][\n]"
19:15:56.249 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 << "Connection: keep-alive[\r][\n]"
19:15:56.249 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 << "Content-Type: text/plain[\r][\n]"
19:15:56.249 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 << "Content-Length: 22[\r][\n]"
19:15:56.249 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 << "Date: Sun, 11 Aug 2019 00:15:56 GMT[\r][\n]"
19:15:56.250 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 << "[\r][\n]"
19:15:56.250 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 << "[0x1f][0x8b][0x8][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0xcb][0xcf][0x6][0x0]G[0xdd][0xdc]y[0x2][0x0][0x0][0x0]"
19:15:56.256 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 << HTTP/1.1 200 OK
19:15:56.256 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 << Content-Encoding: gzip
19:15:56.256 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 << Connection: keep-alive
19:15:56.256 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 << Content-Type: text/plain
19:15:56.256 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 << Content-Length: 22
19:15:56.256 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 << Date: Sun, 11 Aug 2019 00:15:56 GMT
19:15:56.283 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive indefinitely
19:15:57.145 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Releasing connection 127.0.0.1:56568<->127.0.0.1:34603
19:15:57.147 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Connection can be kept alive indefinitely
19:15:57.192 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@6fea373b
19:15:57.232 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@22172482
19:15:57.251 [XNIO-2 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-1', selector sun.nio.ch.EPollSelectorImpl@16beab02
19:15:57.270 [XNIO-2 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-2', selector sun.nio.ch.EPollSelectorImpl@7ca2e305
19:15:57.287 [XNIO-2 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-3', selector sun.nio.ch.EPollSelectorImpl@7a3b82d
19:15:57.302 [XNIO-2 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-4', selector sun.nio.ch.EPollSelectorImpl@4e07c959
19:15:57.318 [XNIO-2 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-5', selector sun.nio.ch.EPollSelectorImpl@3acac4a2
19:15:57.335 [XNIO-2 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-6', selector sun.nio.ch.EPollSelectorImpl@6d7d4898
19:15:57.355 [XNIO-2 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-7', selector sun.nio.ch.EPollSelectorImpl@7acc1d91
19:15:57.394 [XNIO-2 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-8', selector sun.nio.ch.EPollSelectorImpl@37a0e054
19:15:57.395 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
19:15:57.402 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@22172482
19:15:57.414 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@77084716
19:15:57.395 [XNIO-2 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 Accept', selector sun.nio.ch.EPollSelectorImpl@4c514b0f
19:15:57.432 [XNIO-3 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-1', selector sun.nio.ch.EPollSelectorImpl@48937aea
19:15:57.442 [XNIO-3 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-2', selector sun.nio.ch.EPollSelectorImpl@a764c31
19:15:57.477 [XNIO-3 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-4', selector sun.nio.ch.EPollSelectorImpl@5fd3791
19:15:57.495 [XNIO-3 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-5', selector sun.nio.ch.EPollSelectorImpl@530a53dc
19:15:57.506 [XNIO-3 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-6', selector sun.nio.ch.EPollSelectorImpl@dd65623
19:15:57.532 [XNIO-3 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-7', selector sun.nio.ch.EPollSelectorImpl@7c34da49
19:15:57.546 [XNIO-3 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-8', selector sun.nio.ch.EPollSelectorImpl@3b6a52e8
19:15:57.547 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
19:15:57.548 [XNIO-3 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 Accept', selector sun.nio.ch.EPollSelectorImpl@390cab84
19:15:57.506 [XNIO-3 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-3', selector sun.nio.ch.EPollSelectorImpl@16f100eb
19:15:57.679 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@77084716
19:15:57.688 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@6a13ff09
19:15:57.714 [XNIO-4 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-1', selector sun.nio.ch.EPollSelectorImpl@31e70cb6
19:15:57.726 [XNIO-4 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-2', selector sun.nio.ch.EPollSelectorImpl@25453f26
19:15:57.734 [XNIO-4 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-3', selector sun.nio.ch.EPollSelectorImpl@7deed1c3
19:15:57.757 [XNIO-4 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-5', selector sun.nio.ch.EPollSelectorImpl@6e1f5d03
19:15:57.757 [XNIO-4 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-4', selector sun.nio.ch.EPollSelectorImpl@55abef07
19:15:57.767 [XNIO-4 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-6', selector sun.nio.ch.EPollSelectorImpl@1e7c5d95
19:15:57.777 [XNIO-4 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-7', selector sun.nio.ch.EPollSelectorImpl@5f29b99c
19:15:57.790 [XNIO-4 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-8', selector sun.nio.ch.EPollSelectorImpl@10495c3
19:15:57.814 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
19:15:57.814 [XNIO-4 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 Accept', selector sun.nio.ch.EPollSelectorImpl@23bd9f0b
19:15:58.009 [Test worker] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
19:15:58.009 [Test worker] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
19:15:58.020 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Get connection for route {}->http://localhost:39335
19:15:58.020 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:39335
19:15:58.020 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:39335
19:15:58.020 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:58456<->127.0.0.1:39335
19:15:58.021 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request POST /foo HTTP/1.1
19:15:58.021 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
19:15:58.034 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
19:15:58.036 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 >> POST /foo HTTP/1.1
19:15:58.036 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 >> Content-Length: 0
19:15:58.037 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 >> Host: localhost:39335
19:15:58.037 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 >> Connection: Keep-Alive
19:15:58.037 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 >> User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_222)
19:15:58.038 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 >> Accept-Encoding: gzip,deflate
19:15:58.038 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "POST /foo HTTP/1.1[\r][\n]"
19:15:58.038 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-Length: 0[\r][\n]"
19:15:58.039 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "Host: localhost:39335[\r][\n]"
19:15:58.039 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"
19:15:58.039 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_222)[\r][\n]"
19:15:58.040 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "Accept-Encoding: gzip,deflate[\r][\n]"
19:15:58.040 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "[\r][\n]"
19:15:58.054 [XNIO-4 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /foo (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip,deflate], Content-Length=[0], User-Agent=[Apache-HttpClient/4.5.2 (Java/1.8.0_222)], Host=[localhost:39335]}, cookies=[:]): <empty> }
19:15:58.057 [XNIO-4 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({}): <empty>
19:15:58.058 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 << "HTTP/1.1 200 OK[\r][\n]"
19:15:58.058 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 << "Connection: keep-alive[\r][\n]"
19:15:58.058 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 << "Content-Length: 0[\r][\n]"
19:15:58.058 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 << "Date: Sun, 11 Aug 2019 00:15:58 GMT[\r][\n]"
19:15:58.059 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 << "[\r][\n]"
19:15:58.059 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 << HTTP/1.1 200 OK
19:15:58.059 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 << Connection: keep-alive
19:15:58.059 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 << Content-Length: 0
19:15:58.059 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 << Date: Sun, 11 Aug 2019 00:15:58 GMT
19:15:58.060 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive indefinitely
19:15:58.060 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Releasing connection 127.0.0.1:58456<->127.0.0.1:39335
19:15:58.060 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Connection can be kept alive indefinitely
19:15:58.064 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@6a13ff09
19:15:58.068 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@59c9057d
19:15:58.077 [XNIO-5 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-1', selector sun.nio.ch.EPollSelectorImpl@cba1080
19:15:58.090 [XNIO-5 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-2', selector sun.nio.ch.EPollSelectorImpl@70154d01
19:15:58.098 [XNIO-5 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-3', selector sun.nio.ch.EPollSelectorImpl@4937308a
19:15:58.122 [XNIO-5 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-4', selector sun.nio.ch.EPollSelectorImpl@24036455
19:15:58.129 [XNIO-5 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-5', selector sun.nio.ch.EPollSelectorImpl@2f761a
19:15:58.139 [XNIO-5 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-6', selector sun.nio.ch.EPollSelectorImpl@68a08d37
19:15:58.148 [XNIO-5 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-7', selector sun.nio.ch.EPollSelectorImpl@5804821c
19:15:58.161 [XNIO-5 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-8', selector sun.nio.ch.EPollSelectorImpl@160aa75f
19:15:58.168 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
19:15:58.180 [Test worker] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
19:15:58.181 [Test worker] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
19:15:58.181 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Get connection for route {}->http://localhost:46743
19:15:58.181 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:46743
19:15:58.181 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:46743
19:15:58.182 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:39720<->127.0.0.1:46743
19:15:58.182 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request POST /foo HTTP/1.1
19:15:58.182 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
19:15:58.182 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
19:15:58.183 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 >> POST /foo HTTP/1.1
19:15:58.185 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 >> Content-Length: 0
19:15:58.186 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 >> Host: localhost:46743
19:15:58.186 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 >> Connection: Keep-Alive
19:15:58.187 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 >> User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_222)
19:15:58.188 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 >> Accept-Encoding: gzip,deflate
19:15:58.189 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "POST /foo HTTP/1.1[\r][\n]"
19:15:58.189 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "Content-Length: 0[\r][\n]"
19:15:58.189 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "Host: localhost:46743[\r][\n]"
19:15:58.183 [XNIO-5 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 Accept', selector sun.nio.ch.EPollSelectorImpl@3c64ade1
19:15:58.190 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "Connection: Keep-Alive[\r][\n]"
19:15:58.194 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_222)[\r][\n]"
19:15:58.194 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "Accept-Encoding: gzip,deflate[\r][\n]"
19:15:58.194 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "[\r][\n]"
19:15:58.214 [XNIO-5 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /foo (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip,deflate], Content-Length=[0], User-Agent=[Apache-HttpClient/4.5.2 (Java/1.8.0_222)], Host=[localhost:46743]}, cookies=[:]): <empty> }
19:15:58.216 [XNIO-5 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): OK
19:15:58.217 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 << "HTTP/1.1 200 OK[\r][\n]"
19:15:58.218 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Encoding: gzip[\r][\n]"
19:15:58.218 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 << "Connection: keep-alive[\r][\n]"
19:15:58.218 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Type: text/plain[\r][\n]"
19:15:58.218 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Length: 22[\r][\n]"
19:15:58.218 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 << "Date: Sun, 11 Aug 2019 00:15:58 GMT[\r][\n]"
19:15:58.218 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 << "[\r][\n]"
19:15:58.218 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 << "[0x1f][0x8b][0x8][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0xf3][0xf7][0x6][0x0]-[0xd9]6[0xd7][0x2][0x0][0x0][0x0]"
19:15:58.218 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 << HTTP/1.1 200 OK
19:15:58.218 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Encoding: gzip
19:15:58.218 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 << Connection: keep-alive
19:15:58.219 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Type: text/plain
19:15:58.219 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Length: 22
19:15:58.219 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 << Date: Sun, 11 Aug 2019 00:15:58 GMT
19:15:58.219 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive indefinitely
19:15:58.220 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Releasing connection 127.0.0.1:39720<->127.0.0.1:46743
19:15:58.220 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Connection can be kept alive indefinitely
19:15:58.220 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@59c9057d
19:15:58.236 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@3d352d0c
19:15:58.260 [XNIO-6 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-6 I/O-1', selector sun.nio.ch.EPollSelectorImpl@426ff40a
19:15:58.273 [XNIO-6 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-6 I/O-2', selector sun.nio.ch.EPollSelectorImpl@3fe833cb
19:15:58.282 [XNIO-6 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-6 I/O-3', selector sun.nio.ch.EPollSelectorImpl@5534701
19:15:58.291 [XNIO-6 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-6 I/O-5', selector sun.nio.ch.EPollSelectorImpl@7dc6919
19:15:58.291 [XNIO-6 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-6 I/O-4', selector sun.nio.ch.EPollSelectorImpl@24ff43c7
19:15:58.302 [XNIO-6 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-6 I/O-6', selector sun.nio.ch.EPollSelectorImpl@e11951d
19:15:58.330 [XNIO-6 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-6 I/O-7', selector sun.nio.ch.EPollSelectorImpl@33a393a1
19:15:58.347 [XNIO-6 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-6 I/O-8', selector sun.nio.ch.EPollSelectorImpl@7962d261
19:15:58.353 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
19:15:58.360 [XNIO-6 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-6 Accept', selector sun.nio.ch.EPollSelectorImpl@1e86151b
19:15:58.468 [Test worker] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
19:15:58.474 [Test worker] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
19:15:58.477 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Get connection for route {}->http://httpbin.org:80
19:15:58.478 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://httpbin.org:80
19:15:58.551 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to httpbin.org/52.22.188.80:80
19:15:58.615 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 192.168.0.136:55760<->52.22.188.80:80
19:15:58.616 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request POST /post HTTP/1.1
19:15:58.616 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
19:15:58.616 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
19:15:58.616 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 >> POST /post HTTP/1.1
19:15:58.616 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 >> Content-Type: application/json; charset=utf-8
19:15:58.616 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 >> Content-Length: 38
19:15:58.617 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 >> Host: httpbin.org
19:15:58.626 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 >> Connection: Keep-Alive
19:15:58.627 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 >> User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_222)
19:15:58.627 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 >> Accept-Encoding: gzip,deflate
19:15:58.628 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "POST /post HTTP/1.1[\r][\n]"
19:15:58.628 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "Content-Type: application/json; charset=utf-8[\r][\n]"
19:15:58.628 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "Content-Length: 38[\r][\n]"
19:15:58.628 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "Host: httpbin.org[\r][\n]"
19:15:58.628 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "Connection: Keep-Alive[\r][\n]"
19:15:58.628 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_222)[\r][\n]"
19:15:58.629 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "Accept-Encoding: gzip,deflate[\r][\n]"
19:15:58.629 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "[\r][\n]"
19:15:58.629 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "{"item":"ASDFASEACV235","score":90786}"
19:15:58.694 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "HTTP/1.1 200 OK[\r][\n]"
19:15:58.694 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "Access-Control-Allow-Credentials: true[\r][\n]"
19:15:58.694 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "Access-Control-Allow-Origin: *[\r][\n]"
19:15:58.694 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "Content-Encoding: gzip[\r][\n]"
19:15:58.695 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "Content-Type: application/json[\r][\n]"
19:15:58.695 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "Date: Sun, 11 Aug 2019 00:15:58 GMT[\r][\n]"
19:15:58.695 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "Referrer-Policy: no-referrer-when-downgrade[\r][\n]"
19:15:58.695 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "Server: nginx[\r][\n]"
19:15:58.695 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "X-Content-Type-Options: nosniff[\r][\n]"
19:15:58.695 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "X-Frame-Options: DENY[\r][\n]"
19:15:58.695 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "X-XSS-Protection: 1; mode=block[\r][\n]"
19:15:58.695 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "Content-Length: 312[\r][\n]"
19:15:58.695 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "Connection: keep-alive[\r][\n]"
19:15:58.695 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "[\r][\n]"
19:15:58.695 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "[0x1f][0x8b][0x8][0x0][0x0][0x0][0x0][0x0][0x0][0x3]eP]O[0xc2]0[0x14]}[0xe7]W4}[0xd2]d[0xeb]>[0x0]A[0x8c][0xf][0xcb][0xc4][0x10][0xe3][0x1b][0xe8][0xd3][0x12]S[0xbb][0xbb][0xae]f[0xb4]M[L[0x94][0xf0][0xdf]m[0x7][0xc2][0x8c][0x8f][0xe7][0x9e][0x8f][0x9b]s[0xf6]#[0x84]05[0xdc][0xe2][0x5][0xda][0x1f]"[0x14]`M[0x1d][0xf5][0x10][0xef]+,[0x1c]l+[0xbc][0xa8]p[0xb1]~x,[0xd6][0xcb][0xa2]|[0xcd][0xc7][0xd3][\n]"
19:15:58.696 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "G[0x15][0xb6]L[0x19][0xf0][0xdc]m:[0x9b][0xdf][0x1c][0xf0][0xd1][0xda][0x88][0xe][0x86]Q[0x8d]2[0xdb][0x1]l[0x81][0xd6]`z[0x81][0x87][0xfe]P0[0x6][0xda][0xc5]K[0xc9]T-$[0xf]_[0xf9][0xb7][0xd0]Q[\r]MG[0x1d][0x1c]S[0xbd][0xae]T[0xd2][0x81]t[0xf1]3H[0xee][0xda] [0x1b][0xcf][0xff][0x91][0x9b]/[\r][0x81][0xa2]Zw[0x82]Q'[0x94]L>[0xac][0x92]w[0x88][0xb5][0xd4]Xp[0xf7];[0xd7][0xc4][0x17][0xdf]JY[0x17][0xf4][0xad]s[0xfa]]H[0xa2][0xc]?s/[0x16]L\p[0x1f][0x1b][0x14][0x85][0xa6][0xac][0x85]x[0xe5][0x85]e'[0xfc]1[0x99][0x90])[0xc9][0xd1][0xd5][0x13][0xfd][0xa4]IF[0xe6]$}[0xcb][0xf3][0xfc][0x1a]{[0xf3][0xa9]jx|[0xe9][0x19]v[0xec][0x83][0x86]3[0x9e][0x9f][0xf5]Sz[0xba][0x9f][0xf2][0x12][0xa1][0x8c][0xe0]"[0x84][0xe0]YJ[0xb2]<#[0xd9][0x98]d[0x93]Y[0x84][0xfe][0xc0][0xd3][0xf2];[0xd3][0xfd]v[0xb1][0x8b]$[0x19]tJt[0xe8]9:[0x8c]~[0x0]i[0x8d][0xc8][0xbc][0xec][0x1][0x0][0x0]"
19:15:58.696 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << HTTP/1.1 200 OK
19:15:58.696 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << Access-Control-Allow-Credentials: true
19:15:58.696 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << Access-Control-Allow-Origin: *
19:15:58.696 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << Content-Encoding: gzip
19:15:58.696 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << Content-Type: application/json
19:15:58.696 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << Date: Sun, 11 Aug 2019 00:15:58 GMT
19:15:58.696 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << Referrer-Policy: no-referrer-when-downgrade
19:15:58.696 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << Server: nginx
19:15:58.696 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << X-Content-Type-Options: nosniff
19:15:58.696 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << X-Frame-Options: DENY
19:15:58.697 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << X-XSS-Protection: 1; mode=block
19:15:58.697 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << Content-Length: 312
19:15:58.697 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << Connection: keep-alive
19:15:58.697 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive indefinitely
19:15:58.726 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Releasing connection 192.168.0.136:55760<->52.22.188.80:80
19:15:58.726 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Connection can be kept alive indefinitely
19:15:58.742 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@3d352d0c