@Test
void testSetLocale() {

    DefaultWebApplication webApp = new DefaultWebApplication();
    webApp.getLocaleEncodingManager().addCharacterEncoding(Locale.ITALY.toString(), "windows-1252");
    DefaultWebApplicationResponse response = new DefaultWebApplicationResponse();
    response.setWebApplication(webApp);
    response.setLocale(Locale.ITALY);
    assertEquals("windows-1252", response.getCharacterEncoding());
}