Class groovyx.net.http.ApacheEncodersSpec

5

tests

0

failures

0

ignored

7.285s

duration

100%

successful

Tests

Test Duration Result
multipart: field 6.797s passed
multipart: file (bytes) 0.143s passed
multipart: file (path) 0.116s passed
multipart: file (stream) 0.078s passed
multipart: file (string) 0.151s passed

Standard output

06:24:08.824 [Test worker] DEBUG ersatz.jboss.logging - Logging Provider: ersatz.jboss.logging.Slf4jLoggerProvider
06:24:09.018 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@4b56d050
06:24:09.053 [Test worker] INFO ersatz.xnio - XNIO version 3.3.8.Final
06:24:09.100 [Test worker] INFO ersatz.xnio.nio - XNIO NIO Implementation Version 3.3.8.Final
06:24:09.270 [XNIO-1 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-1', selector sun.nio.ch.EPollSelectorImpl@3f15d432
06:24:09.286 [XNIO-1 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-2', selector sun.nio.ch.EPollSelectorImpl@191ec986
06:24:09.294 [XNIO-1 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-3', selector sun.nio.ch.EPollSelectorImpl@75388b99
06:24:09.311 [XNIO-1 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-4', selector sun.nio.ch.EPollSelectorImpl@6e142165
06:24:09.314 [XNIO-1 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-5', selector sun.nio.ch.EPollSelectorImpl@2dc144c9
06:24:09.320 [XNIO-1 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-6', selector sun.nio.ch.EPollSelectorImpl@5e3006fb
06:24:09.321 [XNIO-1 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-7', selector sun.nio.ch.EPollSelectorImpl@3ebe7626
06:24:09.328 [XNIO-1 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-8', selector sun.nio.ch.EPollSelectorImpl@525a9014
06:24:09.330 [XNIO-1 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 Accept', selector sun.nio.ch.EPollSelectorImpl@7f22a109
06:24:09.334 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:24:09.659 [Test worker] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
06:24:09.692 [Test worker] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
06:24:09.695 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Get connection for route {}->http://localhost:36475
06:24:09.732 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:36475
06:24:09.735 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:36475
06:24:09.759 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:55954<->127.0.0.1:36475
06:24:09.769 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request POST /multi HTTP/1.1
06:24:09.771 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
06:24:09.773 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
06:24:09.785 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 >> POST /multi HTTP/1.1
06:24:09.786 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 >> Content-Type: multipart/form-data; boundary=aAfQWgVp28; charset=utf-8
06:24:09.787 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 >> Content-Length: 308
06:24:09.788 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 >> Host: localhost:36475
06:24:09.788 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 >> Connection: Keep-Alive
06:24:09.789 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 >> User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_131)
06:24:09.790 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 >> Accept-Encoding: gzip,deflate
06:24:09.797 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "POST /multi HTTP/1.1[\r][\n]"
06:24:09.799 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "Content-Type: multipart/form-data; boundary=aAfQWgVp28; charset=utf-8[\r][\n]"
06:24:09.800 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "Content-Length: 308[\r][\n]"
06:24:09.802 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "Host: localhost:36475[\r][\n]"
06:24:09.802 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
06:24:09.802 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_131)[\r][\n]"
06:24:09.802 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
06:24:09.804 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "[\r][\n]"
06:24:09.805 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "--aAfQWgVp28[\r][\n]"
06:24:09.807 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "Content-Disposition: form-data; name="alpha"[\r][\n]"
06:24:09.807 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "Content-Type: text/plain; charset=ISO-8859-1[\r][\n]"
06:24:09.807 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "Content-Transfer-Encoding: 8bit[\r][\n]"
06:24:09.809 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "[\r][\n]"
06:24:09.810 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "one[\r][\n]"
06:24:09.812 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "--aAfQWgVp28[\r][\n]"
06:24:09.812 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "Content-Disposition: form-data; name="bravo"[\r][\n]"
06:24:09.820 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "Content-Type: text/plain; charset=ISO-8859-1[\r][\n]"
06:24:09.821 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "Content-Transfer-Encoding: 8bit[\r][\n]"
06:24:09.822 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "[\r][\n]"
06:24:09.823 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "two[\r][\n]"
06:24:09.825 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 >> "--aAfQWgVp28--[\r][\n]"
06:24:10.068 [XNIO-1 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip,deflate], Content-Type=[multipart/form-data; boundary=aAfQWgVp28; charset=utf-8], Content-Length=[308], User-Agent=[Apache-HttpClient/4.5.2 (Java/1.8.0_131)], Host=[localhost:36475]}, cookies=[:]): --aAfQWgVp28
Content-Disposition: form-data; name="alpha"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

one
--aAfQWgVp28
Content-Disposition: form-data; name="bravo"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

two
--aAfQWgVp28--
 }
06:24:10.501 [XNIO-1 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
06:24:10.546 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"
06:24:10.546 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 << "Content-Encoding: gzip[\r][\n]"
06:24:10.546 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 << "Connection: keep-alive[\r][\n]"
06:24:10.546 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 << "Content-Type: text/plain[\r][\n]"
06:24:10.546 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 << "Content-Length: 22[\r][\n]"
06:24:10.547 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 << "Date: Mon, 20 Nov 2017 12:24:10 GMT[\r][\n]"
06:24:10.547 [Test worker] DEBUG org.apache.http.wire - http-outgoing-0 << "[\r][\n]"
06:24:10.547 [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]"
06:24:10.569 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 << HTTP/1.1 200 OK
06:24:10.570 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 << Content-Encoding: gzip
06:24:10.570 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 << Connection: keep-alive
06:24:10.571 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 << Content-Type: text/plain
06:24:10.571 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 << Content-Length: 22
06:24:10.572 [Test worker] DEBUG org.apache.http.headers - http-outgoing-0 << Date: Mon, 20 Nov 2017 12:24:10 GMT
06:24:10.591 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive indefinitely
06:24:11.150 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Releasing connection 127.0.0.1:55954<->127.0.0.1:36475
06:24:11.150 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Connection can be kept alive indefinitely
06:24:11.221 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@4b56d050
06:24:11.256 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@520db7b7
06:24:11.259 [XNIO-2 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-1', selector sun.nio.ch.EPollSelectorImpl@2a90ce96
06:24:11.259 [XNIO-2 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-2', selector sun.nio.ch.EPollSelectorImpl@4fba14f0
06:24:11.260 [XNIO-2 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-3', selector sun.nio.ch.EPollSelectorImpl@49640c8b
06:24:11.260 [XNIO-2 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-7', selector sun.nio.ch.EPollSelectorImpl@5c75af49
06:24:11.260 [XNIO-2 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-6', selector sun.nio.ch.EPollSelectorImpl@14caa78
06:24:11.261 [XNIO-2 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-5', selector sun.nio.ch.EPollSelectorImpl@49730692
06:24:11.261 [XNIO-2 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-4', selector sun.nio.ch.EPollSelectorImpl@942270f
06:24:11.266 [XNIO-2 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-8', selector sun.nio.ch.EPollSelectorImpl@403dce
06:24:11.274 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:24:11.274 [XNIO-2 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 Accept', selector sun.nio.ch.EPollSelectorImpl@51845c58
06:24:11.315 [Test worker] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
06:24:11.316 [Test worker] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
06:24:11.316 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Get connection for route {}->http://localhost:39383
06:24:11.316 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:39383
06:24:11.317 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:39383
06:24:11.325 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:48056<->127.0.0.1:39383
06:24:11.325 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request POST /multi HTTP/1.1
06:24:11.325 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
06:24:11.325 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
06:24:11.325 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 >> POST /multi HTTP/1.1
06:24:11.326 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 >> Content-Type: multipart/form-data; boundary=E8rQ9LomQ9; charset=utf-8
06:24:11.326 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 >> Content-Length: 340
06:24:11.326 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 >> Host: localhost:39383
06:24:11.326 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 >> Connection: Keep-Alive
06:24:11.326 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 >> User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_131)
06:24:11.326 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 >> Accept-Encoding: gzip,deflate
06:24:11.326 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "POST /multi HTTP/1.1[\r][\n]"
06:24:11.326 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-Type: multipart/form-data; boundary=E8rQ9LomQ9; charset=utf-8[\r][\n]"
06:24:11.326 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-Length: 340[\r][\n]"
06:24:11.326 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "Host: localhost:39383[\r][\n]"
06:24:11.326 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"
06:24:11.326 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_131)[\r][\n]"
06:24:11.326 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "Accept-Encoding: gzip,deflate[\r][\n]"
06:24:11.326 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "[\r][\n]"
06:24:11.326 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "--E8rQ9LomQ9[\r][\n]"
06:24:11.327 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-Disposition: form-data; name="filea"; filename="file-a.txt"[\r][\n]"
06:24:11.327 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-Type: text/plain[\r][\n]"
06:24:11.327 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-Transfer-Encoding: binary[\r][\n]"
06:24:11.327 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "[\r][\n]"
06:24:11.327 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "some-a-content[\r][\n]"
06:24:11.327 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "--E8rQ9LomQ9[\r][\n]"
06:24:11.327 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"[\r][\n]"
06:24:11.327 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-Type: text/plain[\r][\n]"
06:24:11.327 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-Transfer-Encoding: binary[\r][\n]"
06:24:11.327 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "[\r][\n]"
06:24:11.327 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "some-b-content[\r][\n]"
06:24:11.327 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 >> "--E8rQ9LomQ9--[\r][\n]"
06:24:11.330 [XNIO-2 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip,deflate], Content-Type=[multipart/form-data; boundary=E8rQ9LomQ9; charset=utf-8], Content-Length=[340], User-Agent=[Apache-HttpClient/4.5.2 (Java/1.8.0_131)], Host=[localhost:39383]}, cookies=[:]): --E8rQ9LomQ9
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Transfer-Encoding: binary

some-a-content
--E8rQ9LomQ9
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Transfer-Encoding: binary

some-b-content
--E8rQ9LomQ9--
 }
06:24:11.336 [XNIO-2 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
06:24:11.337 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 << "HTTP/1.1 200 OK[\r][\n]"
06:24:11.337 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 << "Content-Encoding: gzip[\r][\n]"
06:24:11.337 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 << "Connection: keep-alive[\r][\n]"
06:24:11.337 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 << "Content-Type: text/plain[\r][\n]"
06:24:11.337 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 << "Content-Length: 22[\r][\n]"
06:24:11.337 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 << "Date: Mon, 20 Nov 2017 12:24:11 GMT[\r][\n]"
06:24:11.338 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 << "[\r][\n]"
06:24:11.338 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 << "[0x1f][0x8b][0x8][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0xcb][0xcf][0x6][0x0]G[0xdd][0xdc]y[0x2][0x0][0x0][0x0]"
06:24:11.338 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 << HTTP/1.1 200 OK
06:24:11.338 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 << Content-Encoding: gzip
06:24:11.338 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 << Connection: keep-alive
06:24:11.338 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 << Content-Type: text/plain
06:24:11.338 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 << Content-Length: 22
06:24:11.338 [Test worker] DEBUG org.apache.http.headers - http-outgoing-1 << Date: Mon, 20 Nov 2017 12:24:11 GMT
06:24:11.338 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive indefinitely
06:24:11.339 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Releasing connection 127.0.0.1:48056<->127.0.0.1:39383
06:24:11.339 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Connection can be kept alive indefinitely
06:24:11.339 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@520db7b7
06:24:11.358 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@151fc87c
06:24:11.359 [XNIO-2 task-1] DEBUG ersatz.undertow.request.io - UT005013: An IOException occurred
java.nio.channels.ClosedChannelException: null
	at sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:797)
	at ersatz.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:190)
	at ersatz.undertow.server.protocol.http.HttpResponseConduit.processWrite(HttpResponseConduit.java:250)
	at ersatz.undertow.server.protocol.http.HttpResponseConduit.write(HttpResponseConduit.java:596)
	at ersatz.undertow.conduits.AbstractFixedLengthStreamSinkConduit.write(AbstractFixedLengthStreamSinkConduit.java:106)
	at ersatz.undertow.conduits.AbstractFixedLengthStreamSinkConduit.write(AbstractFixedLengthStreamSinkConduit.java:120)
	at ersatz.undertow.conduits.DeflatingStreamSinkConduit.performFlushIfRequired(DeflatingStreamSinkConduit.java:419)
	at ersatz.undertow.conduits.DeflatingStreamSinkConduit.flush(DeflatingStreamSinkConduit.java:349)
	at ersatz.xnio.conduits.ConduitStreamSinkChannel.flush(ConduitStreamSinkChannel.java:162)
	at ersatz.undertow.channels.DetachableStreamSinkChannel.flush(DetachableStreamSinkChannel.java:119)
	at ersatz.xnio.channels.Channels.flushBlocking(Channels.java:63)
	at ersatz.undertow.io.UndertowOutputStream.close(UndertowOutputStream.java:344)
	at ersatz.undertow.io.BlockingSenderImpl.close(BlockingSenderImpl.java:170)
	at ersatz.undertow.io.DefaultIoCallback.onComplete(DefaultIoCallback.java:54)
	at ersatz.undertow.io.BlockingSenderImpl.invokeOnComplete(BlockingSenderImpl.java:227)
	at ersatz.undertow.io.BlockingSenderImpl.send(BlockingSenderImpl.java:95)
	at ersatz.undertow.io.BlockingSenderImpl.send(BlockingSenderImpl.java:117)
	at com.stehno.ersatz.ErsatzServer.send(ErsatzServer.groovy:494)
	at com.stehno.ersatz.ErsatzServer.access$0(ErsatzServer.groovy)
	at com.stehno.ersatz.ErsatzServer$1.handleRequest(ErsatzServer.groovy:370)
	at ersatz.undertow.server.handlers.HttpTraceHandler.handleRequest(HttpTraceHandler.java:70)
	at ersatz.undertow.server.handlers.encoding.EncodingHandler.handleRequest(EncodingHandler.java:72)
	at ersatz.undertow.server.Connectors.executeRootHandler(Connectors.java:332)
	at ersatz.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:812)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
	Suppressed: java.nio.channels.ClosedByInterruptException: null
		at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
		at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:511)
		at ersatz.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:184)
		... 25 common frames omitted
06:24:11.406 [XNIO-3 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-1', selector sun.nio.ch.EPollSelectorImpl@470f71e6
06:24:11.407 [XNIO-3 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-2', selector sun.nio.ch.EPollSelectorImpl@5acd3430
06:24:11.418 [XNIO-3 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-3', selector sun.nio.ch.EPollSelectorImpl@cb7a5c9
06:24:11.418 [XNIO-3 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-4', selector sun.nio.ch.EPollSelectorImpl@7a74466e
06:24:11.419 [XNIO-3 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-5', selector sun.nio.ch.EPollSelectorImpl@6c61ed01
06:24:11.419 [XNIO-3 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-6', selector sun.nio.ch.EPollSelectorImpl@437fb430
06:24:11.426 [XNIO-3 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-7', selector sun.nio.ch.EPollSelectorImpl@4be9ed9e
06:24:11.430 [XNIO-3 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-8', selector sun.nio.ch.EPollSelectorImpl@2267bce0
06:24:11.434 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:24:11.434 [XNIO-3 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 Accept', selector sun.nio.ch.EPollSelectorImpl@6019157f
06:24:11.453 [Test worker] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
06:24:11.453 [Test worker] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
06:24:11.453 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Get connection for route {}->http://localhost:37271
06:24:11.453 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:37271
06:24:11.453 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:37271
06:24:11.454 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:45836<->127.0.0.1:37271
06:24:11.456 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request POST /multi HTTP/1.1
06:24:11.456 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
06:24:11.456 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
06:24:11.456 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 >> POST /multi HTTP/1.1
06:24:11.456 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 >> Content-Type: multipart/form-data; boundary=mDgQkgdyBa; charset=utf-8
06:24:11.457 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 >> Content-Length: 340
06:24:11.458 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 >> Host: localhost:37271
06:24:11.458 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 >> Connection: Keep-Alive
06:24:11.458 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 >> User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_131)
06:24:11.458 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 >> Accept-Encoding: gzip,deflate
06:24:11.458 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "POST /multi HTTP/1.1[\r][\n]"
06:24:11.458 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "Content-Type: multipart/form-data; boundary=mDgQkgdyBa; charset=utf-8[\r][\n]"
06:24:11.458 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "Content-Length: 340[\r][\n]"
06:24:11.458 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "Host: localhost:37271[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "Connection: Keep-Alive[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_131)[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "Accept-Encoding: gzip,deflate[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "--mDgQkgdyBa[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "Content-Disposition: form-data; name="filea"; filename="file-a.txt"[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "Content-Type: text/plain[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "Content-Transfer-Encoding: binary[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "some-a-content[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "--mDgQkgdyBa[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "Content-Type: text/plain[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "Content-Transfer-Encoding: binary[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "some-b-content[\r][\n]"
06:24:11.459 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 >> "--mDgQkgdyBa--[\r][\n]"
06:24:11.474 [XNIO-3 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip,deflate], Content-Type=[multipart/form-data; boundary=mDgQkgdyBa; charset=utf-8], Content-Length=[340], User-Agent=[Apache-HttpClient/4.5.2 (Java/1.8.0_131)], Host=[localhost:37271]}, cookies=[:]): --mDgQkgdyBa
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Transfer-Encoding: binary

some-a-content
--mDgQkgdyBa
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Transfer-Encoding: binary

some-b-content
--mDgQkgdyBa--
 }
06:24:11.489 [XNIO-3 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
06:24:11.490 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 << "HTTP/1.1 200 OK[\r][\n]"
06:24:11.490 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Encoding: gzip[\r][\n]"
06:24:11.490 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 << "Connection: keep-alive[\r][\n]"
06:24:11.490 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Type: text/plain[\r][\n]"
06:24:11.490 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Length: 22[\r][\n]"
06:24:11.490 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 << "Date: Mon, 20 Nov 2017 12:24:11 GMT[\r][\n]"
06:24:11.490 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 << "[\r][\n]"
06:24:11.490 [Test worker] DEBUG org.apache.http.wire - http-outgoing-2 << "[0x1f][0x8b][0x8][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0xcb][0xcf][0x6][0x0]G[0xdd][0xdc]y[0x2][0x0][0x0][0x0]"
06:24:11.490 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 << HTTP/1.1 200 OK
06:24:11.490 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Encoding: gzip
06:24:11.491 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 << Connection: keep-alive
06:24:11.491 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Type: text/plain
06:24:11.491 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Length: 22
06:24:11.491 [Test worker] DEBUG org.apache.http.headers - http-outgoing-2 << Date: Mon, 20 Nov 2017 12:24:11 GMT
06:24:11.491 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive indefinitely
06:24:11.491 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Releasing connection 127.0.0.1:45836<->127.0.0.1:37271
06:24:11.491 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Connection can be kept alive indefinitely
06:24:11.492 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@151fc87c
06:24:11.498 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@6f0bbeae
06:24:11.506 [XNIO-4 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-1', selector sun.nio.ch.EPollSelectorImpl@7618012d
06:24:11.518 [XNIO-4 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-2', selector sun.nio.ch.EPollSelectorImpl@51d424bc
06:24:11.520 [XNIO-4 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-6', selector sun.nio.ch.EPollSelectorImpl@6ecff6b5
06:24:11.521 [XNIO-4 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-4', selector sun.nio.ch.EPollSelectorImpl@42c4f395
06:24:11.522 [XNIO-4 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-7', selector sun.nio.ch.EPollSelectorImpl@73d70617
06:24:11.526 [XNIO-4 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-3', selector sun.nio.ch.EPollSelectorImpl@45181c9
06:24:11.520 [XNIO-4 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-5', selector sun.nio.ch.EPollSelectorImpl@18d39ad9
06:24:11.537 [XNIO-4 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-8', selector sun.nio.ch.EPollSelectorImpl@204f95ed
06:24:11.546 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:24:11.552 [XNIO-4 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 Accept', selector sun.nio.ch.EPollSelectorImpl@6f5efd5
06:24:11.558 [Test worker] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
06:24:11.575 [Test worker] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
06:24:11.594 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Get connection for route {}->http://localhost:37235
06:24:11.594 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:37235
06:24:11.594 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:37235
06:24:11.594 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:47376<->127.0.0.1:37235
06:24:11.594 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request POST /multi HTTP/1.1
06:24:11.594 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
06:24:11.594 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
06:24:11.595 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 >> POST /multi HTTP/1.1
06:24:11.595 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 >> Content-Type: multipart/form-data; boundary=PQr1wKA9MW; charset=utf-8
06:24:11.595 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 >> Content-Length: 340
06:24:11.595 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 >> Host: localhost:37235
06:24:11.595 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 >> Connection: Keep-Alive
06:24:11.595 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 >> User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_131)
06:24:11.595 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 >> Accept-Encoding: gzip,deflate
06:24:11.595 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "POST /multi HTTP/1.1[\r][\n]"
06:24:11.595 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "Content-Type: multipart/form-data; boundary=PQr1wKA9MW; charset=utf-8[\r][\n]"
06:24:11.595 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "Content-Length: 340[\r][\n]"
06:24:11.595 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "Host: localhost:37235[\r][\n]"
06:24:11.595 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "Connection: Keep-Alive[\r][\n]"
06:24:11.595 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_131)[\r][\n]"
06:24:11.595 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "Accept-Encoding: gzip,deflate[\r][\n]"
06:24:11.595 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "[\r][\n]"
06:24:11.595 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "--PQr1wKA9MW[\r][\n]"
06:24:11.595 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "Content-Disposition: form-data; name="filea"; filename="file-a.txt"[\r][\n]"
06:24:11.595 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "Content-Type: text/plain[\r][\n]"
06:24:11.595 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "Content-Transfer-Encoding: binary[\r][\n]"
06:24:11.596 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "[\r][\n]"
06:24:11.596 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "some-a-content[\r][\n]"
06:24:11.596 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "--PQr1wKA9MW[\r][\n]"
06:24:11.596 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"[\r][\n]"
06:24:11.596 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "Content-Type: text/plain[\r][\n]"
06:24:11.596 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "Content-Transfer-Encoding: binary[\r][\n]"
06:24:11.596 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "[\r][\n]"
06:24:11.596 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "some-b-content[\r][\n]"
06:24:11.596 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 >> "--PQr1wKA9MW--[\r][\n]"
06:24:11.626 [XNIO-4 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip,deflate], Content-Type=[multipart/form-data; boundary=PQr1wKA9MW; charset=utf-8], Content-Length=[340], User-Agent=[Apache-HttpClient/4.5.2 (Java/1.8.0_131)], Host=[localhost:37235]}, cookies=[:]): --PQr1wKA9MW
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Transfer-Encoding: binary

some-a-content
--PQr1wKA9MW
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Transfer-Encoding: binary

some-b-content
--PQr1wKA9MW--
 }
06:24:11.638 [XNIO-4 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
06:24:11.639 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "HTTP/1.1 200 OK[\r][\n]"
06:24:11.639 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "Content-Encoding: gzip[\r][\n]"
06:24:11.639 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "Connection: keep-alive[\r][\n]"
06:24:11.639 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "Content-Type: text/plain[\r][\n]"
06:24:11.639 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "Content-Length: 22[\r][\n]"
06:24:11.639 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "Date: Mon, 20 Nov 2017 12:24:11 GMT[\r][\n]"
06:24:11.639 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "[\r][\n]"
06:24:11.639 [Test worker] DEBUG org.apache.http.wire - http-outgoing-3 << "[0x1f][0x8b][0x8][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0xcb][0xcf][0x6][0x0]G[0xdd][0xdc]y[0x2][0x0][0x0][0x0]"
06:24:11.639 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << HTTP/1.1 200 OK
06:24:11.639 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << Content-Encoding: gzip
06:24:11.640 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << Connection: keep-alive
06:24:11.640 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << Content-Type: text/plain
06:24:11.640 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << Content-Length: 22
06:24:11.641 [Test worker] DEBUG org.apache.http.headers - http-outgoing-3 << Date: Mon, 20 Nov 2017 12:24:11 GMT
06:24:11.641 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive indefinitely
06:24:11.642 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Releasing connection 127.0.0.1:47376<->127.0.0.1:37235
06:24:11.642 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Connection can be kept alive indefinitely
06:24:11.642 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@6f0bbeae
06:24:11.649 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@140efe33
06:24:11.655 [XNIO-5 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-1', selector sun.nio.ch.EPollSelectorImpl@7669fee1
06:24:11.658 [XNIO-5 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-2', selector sun.nio.ch.EPollSelectorImpl@576f6ab9
06:24:11.659 [XNIO-5 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-3', selector sun.nio.ch.EPollSelectorImpl@2e1e4519
06:24:11.664 [XNIO-5 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-4', selector sun.nio.ch.EPollSelectorImpl@5405b9db
06:24:11.675 [XNIO-5 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-5', selector sun.nio.ch.EPollSelectorImpl@1c339749
06:24:11.682 [XNIO-5 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-6', selector sun.nio.ch.EPollSelectorImpl@14472cb2
06:24:11.691 [XNIO-5 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-8', selector sun.nio.ch.EPollSelectorImpl@34f2daba
06:24:11.690 [XNIO-5 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-7', selector sun.nio.ch.EPollSelectorImpl@199ebf58
06:24:11.691 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:24:11.691 [XNIO-5 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 Accept', selector sun.nio.ch.EPollSelectorImpl@7e94b9
06:24:11.702 [Test worker] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
06:24:11.702 [Test worker] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
06:24:11.702 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Get connection for route {}->http://localhost:34353
06:24:11.702 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:34353
06:24:11.702 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:34353
06:24:11.702 [Test worker] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:36092<->127.0.0.1:34353
06:24:11.702 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request POST /multi HTTP/1.1
06:24:11.703 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
06:24:11.703 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
06:24:11.703 [Test worker] DEBUG org.apache.http.headers - http-outgoing-4 >> POST /multi HTTP/1.1
06:24:11.703 [Test worker] DEBUG org.apache.http.headers - http-outgoing-4 >> Content-Type: multipart/form-data; boundary=UawM6KaohI; charset=utf-8
06:24:11.703 [Test worker] DEBUG org.apache.http.headers - http-outgoing-4 >> Content-Length: 340
06:24:11.703 [Test worker] DEBUG org.apache.http.headers - http-outgoing-4 >> Host: localhost:34353
06:24:11.703 [Test worker] DEBUG org.apache.http.headers - http-outgoing-4 >> Connection: Keep-Alive
06:24:11.703 [Test worker] DEBUG org.apache.http.headers - http-outgoing-4 >> User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_131)
06:24:11.703 [Test worker] DEBUG org.apache.http.headers - http-outgoing-4 >> Accept-Encoding: gzip,deflate
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "POST /multi HTTP/1.1[\r][\n]"
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "Content-Type: multipart/form-data; boundary=UawM6KaohI; charset=utf-8[\r][\n]"
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "Content-Length: 340[\r][\n]"
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "Host: localhost:34353[\r][\n]"
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "Connection: Keep-Alive[\r][\n]"
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_131)[\r][\n]"
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "Accept-Encoding: gzip,deflate[\r][\n]"
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "[\r][\n]"
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "--UawM6KaohI[\r][\n]"
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "Content-Disposition: form-data; name="filea"; filename="file-a.txt"[\r][\n]"
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "Content-Type: text/plain[\r][\n]"
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "Content-Transfer-Encoding: binary[\r][\n]"
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "[\r][\n]"
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "some-a-content[\r][\n]"
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "--UawM6KaohI[\r][\n]"
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"[\r][\n]"
06:24:11.704 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "Content-Type: text/plain[\r][\n]"
06:24:11.705 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "Content-Transfer-Encoding: binary[\r][\n]"
06:24:11.705 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "[\r][\n]"
06:24:11.705 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "some-b-content[\r][\n]"
06:24:11.705 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 >> "--UawM6KaohI--[\r][\n]"
06:24:11.706 [XNIO-5 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip,deflate], Content-Type=[multipart/form-data; boundary=UawM6KaohI; charset=utf-8], Content-Length=[340], User-Agent=[Apache-HttpClient/4.5.2 (Java/1.8.0_131)], Host=[localhost:34353]}, cookies=[:]): --UawM6KaohI
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Transfer-Encoding: binary

some-a-content
--UawM6KaohI
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Transfer-Encoding: binary

some-b-content
--UawM6KaohI--
 }
06:24:11.712 [XNIO-5 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
06:24:11.713 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 << "HTTP/1.1 200 OK[\r][\n]"
06:24:11.713 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 << "Content-Encoding: gzip[\r][\n]"
06:24:11.713 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 << "Connection: keep-alive[\r][\n]"
06:24:11.713 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 << "Content-Type: text/plain[\r][\n]"
06:24:11.713 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 << "Content-Length: 22[\r][\n]"
06:24:11.713 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 << "Date: Mon, 20 Nov 2017 12:24:11 GMT[\r][\n]"
06:24:11.713 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 << "[\r][\n]"
06:24:11.713 [Test worker] DEBUG org.apache.http.wire - http-outgoing-4 << "[0x1f][0x8b][0x8][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0xcb][0xcf][0x6][0x0]G[0xdd][0xdc]y[0x2][0x0][0x0][0x0]"
06:24:11.713 [Test worker] DEBUG org.apache.http.headers - http-outgoing-4 << HTTP/1.1 200 OK
06:24:11.714 [Test worker] DEBUG org.apache.http.headers - http-outgoing-4 << Content-Encoding: gzip
06:24:11.714 [Test worker] DEBUG org.apache.http.headers - http-outgoing-4 << Connection: keep-alive
06:24:11.714 [Test worker] DEBUG org.apache.http.headers - http-outgoing-4 << Content-Type: text/plain
06:24:11.714 [Test worker] DEBUG org.apache.http.headers - http-outgoing-4 << Content-Length: 22
06:24:11.714 [Test worker] DEBUG org.apache.http.headers - http-outgoing-4 << Date: Mon, 20 Nov 2017 12:24:11 GMT
06:24:11.714 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive indefinitely
06:24:11.714 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Releasing connection 127.0.0.1:36092<->127.0.0.1:34353
06:24:11.714 [Test worker] DEBUG org.apache.http.impl.conn.BasicHttpClientConnectionManager - Connection can be kept alive indefinitely
06:24:11.715 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@140efe33