@SuppressWarnings("unchecked")
public void testParentWithFilter() {
session = openSession();
session.beginTransaction();
Filter filter = session.enableFilter("age_gt_10");
filter.setParameter("age", 10);
System.out.println("testParentWithFilter");
List<Animal> result = session.createCriteria(Animal.class).list();
Assert.assertEquals(1, result.size());
session.getTransaction().commit();
session.close();