GetAdjacentIds implements
        InputOutput<Iterable<? extends EntityId>, CloseableIterable<? extends EntityId>>,
        MultiEntityIdInput,
        SeededGraphFilters { @Override public Iterable<? extends EntityId> getInput() { return input; }  @Override View getView(); @Override void setView(final View view); @Override DirectedType getDirectedType(); @Override void setDirectedType(final DirectedType directedType); @Override Iterable<? extends EntityId> getInput(); @Override void setInput(final Iterable<? extends EntityId> input); @Override TypeReference<CloseableIterable<? extends EntityId>> getOutputTypeReference(); @Override Map<String, String> getOptions(); @Override void setOptions(final Map<String, String> options); @Override IncludeIncomingOutgoingType getIncludeIncomingOutGoing(); @Override void setIncludeIncomingOutGoing(final IncludeIncomingOutgoingType inOutType); @Override GetAdjacentIds shallowClone();  }
@Test public void shouldSerialiseAndDeserialiseOperationWithEntityIds() throws SerialisationException { final EntityId entitySeed = new EntitySeed("identifier"); final GetAdjacentIds op = new GetAdjacentIds.Builder() .input(entitySeed) .build(); byte[] json = JSONSerialiser.serialise(op, true); final GetAdjacentIds deserialisedOp = JSONSerialiser.deserialise(json, GetAdjacentIds.class); final Iterator itr = deserialisedOp.getInput().iterator(); assertEquals(entitySeed, itr.next()); assertFalse(itr.hasNext()); }
@Test public void shouldSetInputFromVerticesAndEntityIds() { final GetAdjacentIds op = new GetAdjacentIds.Builder() .input("1", new EntitySeed("2"), new Entity("group1", "3")) .build(); assertEquals( Lists.newArrayList(new EntitySeed("1"), new EntitySeed("2"), new Entity("group1", "3")), Lists.newArrayList(op.getInput()) ); }