assertEquals("text/plain; charset=ISO-8859-1",response.getContentType());
assertEquals("text/plain; charset=iso-8859-1",response.getContentType());  response.recycle(); response.setContentType("text/plain"); response.setCharacterEncoding("utf-8"); response.setLocale(java.util.Locale.ITALIAN); assertEquals("text/plain; charset=utf-8",response.getContentType()); assertTrue(response.toString().indexOf("charset=utf-8")>0);
    public void testLocale()        throws Exception    {        HttpConnection connection = new HttpConnection(connector,connector.endp,connector.server);        Request request = connection.getRequest();        Response response = connection.getResponse();        ContextHandler context = new ContextHandler();        context.addLocaleEncoding(Locale.ENGLISH.toString(),"ISO-8859-1");        request.setContext(context.getServletContext());        response.setLocale(java.util.Locale.ENGLISH);        assertEquals("application/octet-stream; charset=ISO-8859-1",response.getContentType());        response.setContentType("text/plain");        assertEquals("text/plain; charset=ISO-8859-1",response.getContentType());    }