OdsFileWriterAdapter implements NamedOdsFileWriter { @Override public NamedOdsDocument document() { return this.adaptee.document(); } OdsFileWriterAdapter(final Logger logger, final NamedOdsFileWriter adaptee,
                         final Queue<OdsAsyncFlusher> flushers); static OdsFileWriterAdapter create(final Logger logger,
                                              final NamedOdsFileWriter adaptee); @Override void close(); @Override NamedOdsDocument document(); @Override synchronized void save(); @Override synchronized void update(final OdsAsyncFlusher flusher); synchronized void flushAdaptee(); synchronized boolean isNotStopped(); synchronized void waitForData();  }
@Test public void testDocument() { PowerMock.resetAll(); EasyMock.expect(this.w.document()).andReturn(this.d); PowerMock.replayAll(); final NamedOdsDocument document = this.wa.document(); PowerMock.verifyAll(); Assert.assertEquals(this.d, document); }