SchemaEdgeDefinition extends SchemaElementDefinition { public String getSource() { return getIdentifierTypeName(IdentifierType.SOURCE); }  String getSource(); String getDestination(); String getDirected(); @JsonIgnore @Override SchemaEdgeDefinition getExpandedDefinition();  }
@Test public void shouldOverrideSourceWhenMerging() { final SchemaEdgeDefinition elementDef1 = new SchemaEdgeDefinition.Builder() .source("source.integer") .build(); final SchemaEdgeDefinition elementDef2 = new SchemaEdgeDefinition.Builder() .source("source.string") .build(); final SchemaEdgeDefinition mergedDef = new Builder() .merge(elementDef1) .merge(elementDef2) .build(); assertEquals("source.string", mergedDef.getSource()); }