GetJavaRDDOfElementsInRanges implements
        InputOutput<Iterable<? extends Pair<? extends ElementId, ? extends ElementId>>, JavaRDD<Element>>,
        MultiInput<Pair<? extends ElementId, ? extends ElementId>>,
        SeededGraphFilters { @Override public Iterable<? extends Pair<? extends ElementId, ? extends ElementId>> getInput() { return input; }  @Override Iterable<? extends Pair<? extends ElementId, ? extends ElementId>> getInput(); @Override void setInput(final Iterable<? extends Pair<? extends ElementId, ? extends ElementId>> input); @Override TypeReference<JavaRDD<Element>> getOutputTypeReference(); @Override IncludeIncomingOutgoingType getIncludeIncomingOutGoing(); @Override void setIncludeIncomingOutGoing(final IncludeIncomingOutgoingType inOutType); @Override View getView(); @Override void setView(final View view); @Override DirectedType getDirectedType(); @Override void setDirectedType(final DirectedType directedType); @Override Map<String, String> getOptions(); @Override void setOptions(final Map<String, String> options); @Override GetJavaRDDOfElementsInRanges shallowClone();  }
@Test public void shouldJSONSerialiseAndDeserialise() throws SerialisationException { final List<Pair<ElementId, ElementId>> pairList = new ArrayList<>(); final Pair<ElementId, ElementId> pair1 = new Pair<>(AccumuloTestData.SEED_SOURCE_1, AccumuloTestData.SEED_DESTINATION_1); final Pair<ElementId, ElementId> pair2 = new Pair<>(AccumuloTestData.SEED_SOURCE_2, AccumuloTestData.SEED_DESTINATION_2); pairList.add(pair1); pairList.add(pair2); final GetJavaRDDOfElementsInRanges op = new GetJavaRDDOfElementsInRanges.Builder() .input(pairList) .build(); byte[] json = JSONSerialiser.serialise(op, true); final GetJavaRDDOfElementsInRanges deserialisedOp = JSONSerialiser.deserialise(json, GetJavaRDDOfElementsInRanges.class); final Iterator<? extends Pair<? extends ElementId, ? extends ElementId>> itrPairs = deserialisedOp.getInput().iterator(); assertEquals(pair1, itrPairs.next()); assertEquals(pair2, itrPairs.next()); assertFalse(itrPairs.hasNext()); }