RemoveGraph implements FederatedOperation, Output<Boolean> { public String getGraphId() { return graphId; } RemoveGraph(); String getGraphId(); void setGraphId(final String graphId); @Override RemoveGraph shallowClone(); @Override Map<String, String> getOptions(); @Override void setOptions(final Map<String, String> options); @Override TypeReference<Boolean> getOutputTypeReference();  }
@Test public void shouldSerialiseAndDeserialiseOperation() throws SerialisationException, JsonProcessingException { RemoveGraph op = new Builder() .graphId(EXPECTED_GRAPH_ID) .build(); byte[] serialise = toJson(op); RemoveGraph deserialise = fromJson(serialise); assertEquals(EXPECTED_GRAPH_ID, deserialise.getGraphId()); }
@Test @Override public void builderShouldCreatePopulatedOperation() { RemoveGraph op = new Builder() .graphId(EXPECTED_GRAPH_ID) .build(); assertEquals(EXPECTED_GRAPH_ID, op.getGraphId()); }