ExistingEdgeMutation extends ExistingElementMutationImpl<Edge> implements EdgeMutation { @Override public boolean hasChanges() { if (newEdgeLabel != null) { return true; } return super.hasChanges(); } ExistingEdgeMutation(Edge edge); @Override String getVertexId(Direction direction); @Override String getEdgeLabel(); @Override EdgeMutation alterEdgeLabel(String newEdgeLabel); @Override long getAlterEdgeLabelTimestamp(); @Override String getNewEdgeLabel(); @Override boolean hasChanges();  }
@Test public void testEmptyMutationHasChanges() { assertFalse("should not have changes", mutation.hasChanges()); }