public class FlattenedArcKeyTest extends TestCase {
public void testAttributes() {
ObjectId src = new ObjectId("X");
ObjectId target = new ObjectId("Y");
MockObjRelationship r1 = new MockObjRelationship("r1");
r1.setReverseRelationship(new MockObjRelationship("r2"));
FlattenedArcKey update = new FlattenedArcKey(src, target, r1);
assertSame(src, update.sourceId);
assertSame(target, update.destinationId);
assertSame(r1, update.relationship);
assertSame(r1.getReverseRelationship(), update.reverseRelationship);
assertTrue(update.isBidirectional());
}