// cannot write to the same instance.
Event e1 = new EventImpl(new byte[0]);
Event e2 = new EventImpl(new byte[0]);
Event e3 = new EventImpl(new byte[0]);
EventSource msrc = mock(EventSource.class);
doNothing().when(msrc).open();
doNothing().when(msrc).close();
when(msrc.next()).thenReturn(e1).thenReturn(e2).thenReturn(e3).thenReturn(
null);
DiskFailoverDeco snk = new DiskFailoverDeco(msnk, LogicalNodeContext
.testingContext(), FlumeNode.getInstance().getDFOManager(),
new TimeTrigger(new ProcessTagger(), 60000), 300000);