ChangeMasterSecretAction extends ConnectionBoundAction { public byte[] getOldValue() { return oldValue; } ChangeMasterSecretAction(byte[] newValue);  ChangeMasterSecretAction(); void setNewValue(byte[] newValue); byte[] getNewValue(); byte[] getOldValue(); @Override void execute(State state); @Override void reset(); @Override int hashCode(); @Override boolean equals(Object obj); @Override boolean executedAsPlanned();  }
@Test public void testGetOldValue() { tlsContext.setMasterSecret(new byte[] { 3 }); action.normalize(); action.execute(state); assertArrayEquals(action.getOldValue(), new byte[] { 3 }); }