WorkflowTrace implements Serializable { public void setTlsActions(List<TlsAction> tlsActions) { dirty = true; this.tlsActions = tlsActions; } WorkflowTrace();  WorkflowTrace(List<AliasedConnection> cons); static WorkflowTrace copy(WorkflowTrace orig); void reset(); String getDescription(); void setDescription(String description); List<TlsAction> getTlsActions(); void addTlsAction(TlsAction action); void addTlsActions(TlsAction... actions); void addTlsActions(List<TlsAction> actions); void addTlsAction(int position, TlsAction action); TlsAction removeTlsAction(int index); void setTlsActions(List<TlsAction> tlsActions); void setTlsActions(TlsAction... tlsActions); List<AliasedConnection> getConnections(); void setConnections(List<AliasedConnection> connections); void addConnection(AliasedConnection connection); List<MessageAction> getMessageActions(); List<ReceivingAction> getReceivingActions(); List<SendingAction> getSendingActions(); TlsAction getLastAction(); MessageAction getLastMessageAction(); SendingAction getLastSendingAction(); ReceivingAction getLastReceivingAction(); MessageAction getFirstMessageAction(); SendingAction getFirstSendingAction(); ReceivingAction getFirstReceivingAction(); String getName(); void setName(String name); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); boolean executedAsPlanned(); boolean allActionsExecuted(); boolean isDirty(); void setDirty(boolean dirty);  }
@Test public void testSetTlsActions() { LinkedList<TlsAction> actionList = new LinkedList<>(); actionList.add(new SendAction()); actionList.add(new ReceiveAction()); trace.setTlsActions(actionList); assertTrue(trace.getTlsActions().size() == 2); assertEquals(trace.getTlsActions().get(0), new SendAction()); assertEquals(trace.getTlsActions().get(1), new ReceiveAction()); }