CopyBuffersAction extends CopyContextFieldAction { @Override public boolean executedAsPlanned() { return isExecuted(); } CopyBuffersAction();  CopyBuffersAction(String srcConnectionAlias, String dstConnectionAlias); @Override boolean executedAsPlanned(); @Override void reset();  }
@Test public void testExecute() { CopyBuffersAction a = new CopyBuffersAction("src", "dst"); WorkflowTrace trace = new WorkflowTrace(); trace.addConnection(new OutboundConnection("src")); trace.addConnection(new OutboundConnection("dst")); trace.addTlsAction(a); State state = new State(trace); TlsContext src = state.getTlsContext("src"); TlsContext dst = state.getTlsContext("dst"); assertNotSame(src.getMessageBuffer(), dst.getMessageBuffer()); assertNotSame(src.getRecordBuffer(), dst.getRecordBuffer()); a.execute(state); assertSame(src.getMessageBuffer(), dst.getMessageBuffer()); assertSame(src.getRecordBuffer(), dst.getRecordBuffer()); assertTrue(a.isExecuted()); assertTrue(a.executedAsPlanned()); }