if (this instanceof SelectChannelServerTest) { System.err.println("\nresponse:\n"+response);  System.err.println("**********END FRAGMENT TEST******************"); }
    public void testRequest2Fragments_jetty()                                     throws Exception    {        Random    random     = new Random(System.currentTimeMillis());        byte[]    bytes      = REQUEST2.getBytes();        final int pointCount = 2;        Server    server     = startServer(new EchoHandler());        try {            for (int i = 0; i < 100; i++) {                                int[]        points  = new int[pointCount];                StringBuffer message = new StringBuffer();                message.append("iteration #" + (i + 1));                // Pick fragment points at random                for (int j = 0; j < points.length; ++j) {                    points[j] = random.nextInt(bytes.length);                    //System.err.println("points["+j+"]="+points[j]);                }                // Sort the list                Arrays.sort(points);                Socket       client = client = new Socket(HOST, port);                OutputStream os     = client.getOutputStream();                writeFragments(bytes, points, message, os);                // Read the response                String response = readResponse(client);                //System.err.println("\nresponse:\n"+response);                // Close the client                client.close();                // Check the response                assertEquals("response for "+i+" " + message.toString(), RESPONSE2,                             response);            }        }        finally {            // Shut down            server.stop();        }    }