@Test(timeout=5000)
    public void testThreadShutdown() throws IOException {
        int threadsBefore = Thread.activeCount();
        for(int i = 0; i < 50; ++i) {
            InternalHTTPConnection<Request> conn = new InternalHTTPConnection<Request>(serverURI, null, null, null);
            conn.abort();
        }
        int threadsAfter = Thread.activeCount();

        assertEquals(threadsBefore, threadsAfter);
    }