    @Test
    public void testAbsPath() throws Exception {

        HttpRequestEncoder encoder = new HttpRequestEncoder();
        ByteBuf buffer = Unpooled.buffer(64);
        encoder.encodeInitialLine(buffer, new DefaultHttpRequest(HttpVersion.HTTP_1_1,
                HttpMethod.GET, "/"));
        String req = buffer.toString(Charset.forName("US-ASCII"));
        assertEquals("GET / HTTP/1.1\r\n", req);
    }