public function testLoadRelations()
{
$this->insertRelationFixture();
$gateway = $this->getDatabaseGateway();
$relations = $gateway->loadRelations(57);
$this->assertEquals(3, count($relations));
$this->assertValuesInRows('ezcontentobject_link_to_contentobject_id', array(58, 59, 60), $relations);
$this->assertValuesInRows('ezcontentobject_link_from_contentobject_id', array(57), $relations);
$this->assertValuesInRows('ezcontentobject_link_from_contentobject_version', array(2), $relations);
}