MultipartContext { public String getCharEncoding() { return charEncoding; } MultipartContext(final String contentType, final int contentLength, final String charEncoding); String getContentType(); int getContentLength(); String getCharEncoding(); @Override String toString();  }
@Test public void testGetCharEncoding() throws Exception { MultipartContext multipartContext = new MultipartContext("multipart/mixed;boundary=gc0p4Jq0M2Yt08jU534c0p", 560, "UTF-8"); log.info("Created multipart context " + multipartContext); assertEquals("UTF-8", multipartContext.getCharEncoding()); multipartContext = new MultipartContext("multipart/mixed;boundary=gc0p4Jq0M2Yt08jU534c0p", 560, null); log.info("Created multipart context " + multipartContext); assertNull(multipartContext.getCharEncoding()); }