### Question:
ModalDialog implements ClientElement { void afterRender(MarkupWriter writer) { writer.end(); } ModalDialog();   ModalDialog(JavaScriptSupport javaScriptSupport,
         ComponentResources resources); String getClientId();  }### Answer:
@Test public void check_anchor_tag_is_closed_in_after_render() { MarkupWriter writer = mockMarkupWriter(); ModalDialog component = new ModalDialog(); expect(writer.end()).andReturn(null); replay(); component.afterRender(writer); verify(); }