ChangeCompressionAction extends ConnectionBoundAction { public CompressionMethod getOldValue() { return oldValue; } ChangeCompressionAction(CompressionMethod newValue);  ChangeCompressionAction(); void setNewValue(CompressionMethod newValue); CompressionMethod getNewValue(); CompressionMethod 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.setSelectedCompressionMethod(CompressionMethod.NULL); action.execute(state); assertEquals(action.getOldValue(), CompressionMethod.NULL); }