public static JoinPredicate example(JoinType joinType, String joinOnElement) {
JoinPredicate jp = new JoinPredicate();
GroupSymbol g1 = new GroupSymbol("m.g1"); //$NON-NLS-1$
GroupSymbol g2 = new GroupSymbol("m.g2"); //$NON-NLS-1$
FromClause lc = new UnaryFromClause(g1);
FromClause rc = new UnaryFromClause(g2);
Expression le = new ElementSymbol("m.g1." + joinOnElement); //$NON-NLS-1$
Expression re = new ElementSymbol("m.g2." + joinOnElement); //$NON-NLS-1$
Criteria c1 = new CompareCriteria(le, CompareCriteria.EQ, re);