DeactivateEncryptionAction extends ConnectionBoundAction { @Override public void execute(State state) throws WorkflowExecutionException { TlsContext tlsContext = state.getTlsContext(getConnectionAlias()); if (isExecuted()) { throw new WorkflowExecutionException("Action already executed!"); } tlsContext.getRecordLayer().setRecordCipher(new RecordNullCipher(tlsContext)); tlsContext.getRecordLayer().updateDecryptionCipher(); tlsContext.getRecordLayer().updateEncryptionCipher(); LOGGER.info("Deactivated Encryption/Decryption"); setExecuted(true); } DeactivateEncryptionAction(); @Override void execute(State state); @Override void reset(); @Override boolean equals(Object o); @Override int hashCode(); @Override boolean executedAsPlanned();  }
@Test public void testExecute() throws Exception { action.execute(state); assertTrue(action.isExecuted()); }