private static void assertChunkedEncoding(final StubConnection conn) {
        StubRequest req = conn.getRequest();
        assertNotNull(req);
        String encoding = req.getHeader("Transfer-Encoding");
        if (encoding == null) {
            // No encoding.  That's fine.
            return;
        }
        assertFalse("Used chunked encoding", encoding.contains("chunked"));
    }