@Test
void testGetMaxRequestSize2() {

    MultipartConfigElement element = new MultipartConfigElement(new MultipartConfig() {
        @Override
        public int fileSizeThreshold() {
            return 1000;
        }
        @Override
        public String location() {
            return "";
        }
        @Override
        public long maxFileSize() {
            return 1000;
        }
        @Override
        public long maxRequestSize() {
            return 1000;
        }
        @Override
        public Class<? extends Annotation> annotationType() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
    });
    assertEquals(1000, element.getMaxRequestSize());
}