### Question:
Uml2XsdPluginWriterAdapter implements Uml2XsdPluginWriter { @Override public void comment(final String data) { try { xsw.writeComment(data); } catch (final XMLStreamException e) { throw new XsdGenRuntimeException(e); } } Uml2XsdPluginWriterAdapter(final XMLStreamWriter xsw, final String prefix); @Override void annotation(); @Override void appinfo(); @Override void begin(final String prefix, final String localName, final String namespace); @Override void characters(final String text); @Override void choice(); @Override void comment(final String data); @Override void complexType(); @Override void documentation(); @Override void element(); @Override void elementName(final QName name); @Override void end(); @Override void maxOccurs(final Occurs value); @Override void minOccurs(final Occurs value); @Override void ref(final QName name); @Override void sequence(); @Override void type(final QName name);  }### Answer:
@Test public void testComment() throws Exception { uml2XsdPluginWriterAdapter.comment("test"); Mockito.verify(mockWriter).writeComment("test"); }