SendDynamicServerCertificateAction extends MessageAction implements SendingAction { @Override public List<ProtocolMessage> getSendMessages() { return messages; } SendDynamicServerCertificateAction();  SendDynamicServerCertificateAction(String connectionAlias); @Override void execute(State state); @Override String toString(); @Override String toCompactString(); @Override boolean executedAsPlanned(); @Override void setRecords(List<AbstractRecord> records); @Override void reset(); @Override List<ProtocolMessage> getSendMessages(); @Override List<AbstractRecord> getSendRecords(); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void testGetSendMessages() { assertTrue(action.getSendMessages().isEmpty()); action.execute(state); assertTrue(action.getSendMessages().size() == 1 && action.getSendMessages().get(0) instanceof CertificateMessage); }