GetWalksHandler implements OutputOperationHandler<GetWalks, Iterable<Walk>> { public void setPrune(final Boolean prune) { this.prune = prune; }  @Override Iterable<Walk> doOperation(final GetWalks getWalks, final Context context, final Store store); Integer getMaxHops(); void setMaxHops(final Integer maxHops); Boolean getPrune(); void setPrune(final Boolean prune);  }
@Test public void shouldSerialiseDeserialise() throws SerialisationException, JsonProcessingException { final GetWalksHandler obj = new GetWalksHandler(); obj.setPrune(true); final byte[] json = JSONSerialiser.serialise(obj, true); final GetWalksHandler deserialisedObj = JSONSerialiser.deserialise(json, GetWalksHandler.class); assertNotNull(deserialisedObj); }