ChangeServerRandomAction extends ConnectionBoundAction { public void setNewValue(byte[] newValue) { this.newValue = newValue; } ChangeServerRandomAction(byte[] newValue);  ChangeServerRandomAction(); 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 testSetNewValue() { assertArrayEquals(action.getNewValue(), new byte[] { 0, 1 }); action.setNewValue(new byte[] { 0 }); assertArrayEquals(action.getNewValue(), new byte[] { 0 }); }