NoSpaceBeforeCloseWriter extends XmlWriter { @Override public void close() { out.close(); } NoSpaceBeforeCloseWriter(XmlWriter out); @Override void write(String str); @Override void write(int c); @Override void flush(); @Override void close(); @Override String toString(); @Override void clearLineBuffer();  }
@Test void closeShouldBeDelegated() { writer.close(); verify(xmlWriter).close(); }