aliases);
assertTrue(lastRelationship.getRelationship() != null);
assertEquals("toGallery", lastRelationship.getRelationship().getName());
PathComponent<ObjAttribute, ObjRelationship> lastLeftJoinRelationship = artistE
.lastPathComponent(new ASTObjPath("paintingArray+.toGallery+"), aliases);
assertTrue(lastLeftJoinRelationship.getRelationship() != null);
assertEquals("toGallery", lastLeftJoinRelationship.getRelationship().getName());
PathComponent<ObjAttribute, ObjRelationship> lastAliasedRelationship = artistE
.lastPathComponent(new ASTObjPath("a"), aliases);
assertTrue(lastAliasedRelationship.getRelationship() != null);
assertEquals("toGallery", lastAliasedRelationship.getRelationship().getName());
}