public function testDeleteObjectStateLinks()
{
$gateway = $this->getDatabaseGateway();
$gateway->deleteObjectStateLinks(1);
$query = $this->getDatabaseHandler()->createSelectQuery();
$query->select($query->expr->count('*'))->from('ezcobj_state_link')->where('contentobject_state_id = 1');
$statement = $query->prepare();
$statement->execute();
$this->assertEquals(0, $statement->fetchColumn());
}