Join join2 = isJoin(join.getLeft());
assertThat(join2.getLeft(), is((Source)namedSelector(selectorName("mgnl:content"))));
assertThat(join2.getRight(), is((Source)namedSelector(selectorName("acme:stuff"))));
assertThat(join2.type(), is(JoinType.INNER));
SameNodeJoinCondition joinCondition2 = isSameNodeJoinCondition(join2.getJoinCondition());
assertThat(joinCondition2.selector1Name(), is(selectorName("mgnl:content")));
assertThat(joinCondition2.selector2Name(), is(selectorName("acme:stuff")));
assertThat(joinCondition2.getSelector2Path(), is(nullValue()));
assertThat(join.getRight(), is((Source)namedSelector(selectorName("foo:bar"))));
assertThat(join.type(), is(JoinType.INNER));