### Question:
AjaxUpload extends AbstractField { void afterRender(final MarkupWriter writer) { writer.end(); writer.element("span", "id", getWrapperClientId(), "style", "display:inline-block"); writer.end(); } AjaxUpload();   AjaxUpload(List<UploadedFile> value, FieldValidator<Object> validate, MultipartDecoder multipartDecoder,
         AjaxUploadDecoder ajaxDecoder, ValidationTracker tracker, ComponentResources resources,
         FieldValidationSupport fieldValidationSupport, JavaScriptSupport javaScriptSupport); List<UploadedFile> getValue(); @Override boolean isRequired(); void injectFieldValidationSupport(FieldValidationSupport support); static final String FILE_PARAMETER; }### Answer:
@Test public void after_render_closes_element() { ComponentResources resources = mockComponentResources(); AjaxUpload component = new AjaxUpload(null, null, null, null, null, resources, null, null); MarkupWriter writer = mockMarkupWriter(); expect(writer.end()).andReturn(null).times(2); expect(writer.element("span", "id", "null_wrapper", "style", "display:inline-block")).andReturn(null); replay(); component.afterRender(writer); verify(); }