### Question:
FlushStrategies { public static FlushStrategy flushOnEnd() { return FLUSH_ON_END; } private  FlushStrategies(); static FlushStrategy defaultFlushStrategy(); static FlushStrategy flushOnEach(); static FlushStrategy batchFlush(int batchSize, Publisher<?> durationBoundaries); static FlushStrategy flushWith(Publisher<?> flushBoundaries); static FlushStrategy flushOnEnd();  }### Answer:
@Test public void testFlushOnEndComplete() { setupFor(flushOnEnd()); listener.itemWritten(1); verifyFlush(0); listener.writeTerminated(); verifyFlush(1); }