Edge extends Element implements EdgeId { @Override public Edge emptyClone() { return new Edge( getGroup(), getSource(), getDestination(), isDirected(), getMatchedVertex(), new Properties() ); } Edge();  Edge(final String group);  Edge(final String group, final Object source, final Object destination, final boolean directed);  Edge(final String group,
                final Object source,
                final Object destination,
                final boolean directed,
                final MatchedVertex matchedVertex,
                final Properties properties); @JsonCreator  Edge(@JsonProperty("group") final String group,
         @JsonProperty("source") final Object source,
         @JsonProperty("destination") final Object destination,
         @JsonProperty("directed") final Boolean directed,
         @JsonProperty("directedType") final DirectedType directedType,
         @JsonProperty("matchedVertex") final MatchedVertex matchedVertex,
         @JsonProperty("properties") final Properties properties); @Override Object getSource(); @Override Object getDestination(); @JsonIgnore @Override DirectedType getDirectedType(); @JsonIgnore(false) @JsonGetter("directed") @Override boolean isDirected(); @Override MatchedVertex getMatchedVertex(); @Override Object getIdentifier(final IdentifierType identifierType); @Override void setIdentifiers(final Object source, final Object destination, final DirectedType directedType); void setIdentifiers(final Object source, final Object destination, final boolean directed); @Override void setIdentifiers(final Object source, final Object destination, final DirectedType directedType, final MatchedVertex matchedVertex); void setIdentifiers(final Object source, final Object destination, final boolean directed, final MatchedVertex matchedVertex); @Override int hashCode(); @Override boolean equals(final Object obj); boolean equals(final Edge edge); @Override Edge emptyClone(); @Override Edge shallowClone(); @Override String toString();  }
@Test public void shouldCloneEdge() { final String source = "source vertex"; final String destination = "dest vertex"; final boolean directed = true; final Edge edge = new Edge.Builder() .group(TestGroups.EDGE) .source(source) .dest(destination) .directed(directed) .build(); final Edge clone = edge.emptyClone(); assertEquals(edge, clone); }