SendDynamicClientKeyExchangeAction extends MessageAction implements SendingAction { @Override public void setRecords(List<AbstractRecord> records) { this.records = records; } SendDynamicClientKeyExchangeAction();  SendDynamicClientKeyExchangeAction(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 testSetRecords() { action.execute(state); List<AbstractRecord> expectedRecords = new ArrayList<>(); action.setRecords(expectedRecords); assertTrue(action.getSendRecords().equals(expectedRecords)); }