@Test
public void testConstructQueryReverse() throws Exception {

    Query actual = QueryGenUtil.constructQuery(os.getModel(), "Company reverse.company Department");
    Query q = new IqlQuery("SELECT a1_, a2_ FROM Company AS a1_, Department AS a2_ WHERE a2_.company CONTAINS a1_", "org.intermine.model.testmodel").toQuery();
    QueryAssert.assertEquals(q, actual);
}