@Test
public void validRestrictionParameters()
{

    Query query = Query.from( createSchema() );
    query.add( Restrictions.eq( "id", "anc" ) );
    query.add( Restrictions.like( "name", "anc", MatchMode.ANYWHERE ) );
    query.add( Restrictions.eq( "code", "anc" ) );
    assertEquals( 3, query.getCriterions().size() );
}