@Test
public void testCollectionDeep()
{

    Query query = Query.from( schemaService.getDynamicSchema( DataElementGroup.class ) );
    query.setObjects( dataElementGroups );
    query.add( Restrictions.like( "dataElements.dataElementGroups.name", "A", MatchMode.END ) );
    queryEngine.query( query );
}