* Test adding distinct edges in a single call. Based on BEL statement:
* <p><tt>deg(p(1)) -> p(2)</tt></p>
*/
@Test
public void testDistinctEdgesSingleCall() {
final ProtoEdgeTable tbl = new ProtoEdgeTable();
final TableProtoEdge edge1 = new TableProtoEdge(1, "INCREASES", 2);
final TableProtoEdge edge2 =
new TableProtoEdge(1, "DIRECTLY_DECREASES", 3);
// for statement 0 add both edges in one call
tbl.addEdges(0, edge1, edge2);
// we should have one statement (0)
assertThat(tbl.getStatementEdges().size(), is(1));
// we should have two edges (0 and 1)
assertThat(tbl.getProtoEdges().size(), is(2));
// edge 0 and 1 should associate with statement 0
Iterator<Integer> stit = tbl.getStatementEdges().get(0).iterator();
assertThat(stit.next(), is(0));
assertThat(stit.next(), is(1));
// both edges should not be equivalent
assertThat(tbl.getEquivalences().get(0), is(0));
assertThat(tbl.getEquivalences().get(1), is(1));
}