ValidateOperationChain implements Output<ValidationResult> { public OperationChain getOperationChain() { return operationChain; }  OperationChain getOperationChain(); void setOperationChain(final OperationChain operationChain); @Override Map<String, String> getOptions(); @Override void setOptions(final Map<String, String> options); @Override TypeReference<ValidationResult> getOutputTypeReference(); @Override ValidateOperationChain shallowClone();  }
@Test public void shouldJSONSerialiseAndDeserialise() throws SerialisationException { final ValidateOperationChain validateOperationChain = new ValidateOperationChain.Builder() .operationChain(operationChain) .build(); byte[] json = JSONSerialiser.serialise(validateOperationChain, true); final ValidateOperationChain deserialisedOp = JSONSerialiser.deserialise(json, ValidateOperationChain.class); assertEquals(validateOperationChain.getOperationChain(), deserialisedOp.getOperationChain()); }