### Question:
ReorderDecorator extends
    EventSinkDecorator<S> { public ReorderDecorator(S s, double yank, double spew, long seed) { super(s); Preconditions.checkArgument(yank >= 0 && yank <= 1.0); Preconditions.checkArgument(spew >= 0 && spew <= 1.0); this.yank = yank; this.spew = spew; this.rand = new Random(seed); } ReorderDecorator(S s, double yank, double spew, long seed); void append(Event e); void close(); static SinkDecoBuilder builder();  }### Answer:
@Test public void testReorderDecorator() throws IOException { ReorderDecorator<EventSink> reorder = new ReorderDecorator<EventSink>(new ConsoleEventSink(), .5, .5, 0); reorder.open(); for (int i = 0; i < 10; i++) { Event e = new EventImpl(new byte[0]); e.set("order", ByteBuffer.allocate(4).putInt(i).array()); reorder.append(e); } System.out.println("closing"); reorder.close(); }