NoSpaceBeforeCloseWriter extends XmlWriter { @Override public void clearLineBuffer() { out.clearLineBuffer(); } 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 clearLineBufferShouldBeDelegated() { writer.clearLineBuffer(); verify(xmlWriter).clearLineBuffer(); }