ImmutableElementsFlusher implements OdsAsyncFlusher { @Override public void flushInto(final XMLUtil xmlUtil, final ZipUTF8Writer writer) throws IOException { this.odsElements.writeMimeType(xmlUtil, writer); this.odsElements.createEmptyElements(xmlUtil, writer); } ImmutableElementsFlusher(final OdsElements odsElements); @Override void flushInto(final XMLUtil xmlUtil, final ZipUTF8Writer writer); @Override boolean isEnd();  }
@Test public final void test() throws IOException { final XMLUtil util = XMLUtil.create(); final OdsElements odsElements = PowerMock.createMock(OdsElements.class); final ZipUTF8Writer w = PowerMock.createMock(ZipUTF8Writer.class); PowerMock.resetAll(); odsElements.writeMimeType(util, w); odsElements.createEmptyElements(util, w); PowerMock.replayAll(); final OdsAsyncFlusher flusher = new ImmutableElementsFlusher(odsElements); flusher.flushInto(util, w); PowerMock.verifyAll(); }