} catch (InvalidOperationException e) {
throw new TestException(e);
}
AkibanInformationSchema ais = ddl().getAIS(session());
final Group group1 = ais.getTable("s1", "t").getGroup();
final Group group2 = ais.getTable("s2", "t").getGroup();
if (group1.getName().equals(group2.getName())) {
fail("same group names: " + group1 + " and " + group2);
}
Table s1T = ais.getTable("s1", "t");
Table s1C = ais.getTable("s1", "c");
Table s2T = ais.getTable("s2", "t");
Table s2C = ais.getTable("s2", "c");
assertEquals("s1.t root", s1T, group1.getRoot());
assertEquals("s1.c parent", s1T, s1C.getParentJoin().getParent());
assertEquals("s1.c join cols", "[JoinColumn(pid -> id)]", s1C.getParentJoin().getJoinColumns().toString());
assertEquals("s2.t root", s2T, group2.getRoot());
assertEquals("s2.c parent", s2T, s2C.getParentJoin().getParent());
assertEquals("s2.c join cols", "[JoinColumn(pid -> id)]", s2C.getParentJoin().getJoinColumns().toString());
}