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