public function testExpandCriteriaParametersWillExpandCompositeEntityKeys()
 {
     $country = new Country("IT", "Italy");
     $admin1 = new Admin1(10, "Rome", $country);
     $criteria = Criteria::create();
     $criteria->andWhere(Criteria::expr()->eq("admin1", $admin1));
     list($values, $types) = $this->_persister->expandCriteriaParameters($criteria);
     $this->assertEquals(array('integer', 'string'), $types);
     $this->assertEquals(array(10, 'IT'), $values);
 }