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