    @Test
    public void handle_write_body_string_with_accept_charset() throws Exception {

        ApplicationContextImpl context = getApplicationContextWithBody();

        ResponseStub response = new ResponseStub();
        response.setOutputStream(new ByteArrayOutputStream());

        RequestStub request = new RequestStub();
        request.setAccept(singletonList(PLAIN_TEXT));
        Map<HeaderName, String> headers = request.getHeaders();
        headers.put(HeaderName.ACCEPT_CHARSET, "UTF-8");

        ExceptionProcessor testedClass = new ExceptionProcessorImpl(context);
        testedClass.process(new FourthException(), request, response);

        ByteArrayOutputStream outputStream = (ByteArrayOutputStream) response.getOutputStream();
        assertEquals(HttpStatus.BAD_GATEWAY, response.getStatus());
        assertEquals("Well Done!!", outputStream.toString());
    }