public function testRemoveUserRoleAssociation()
{
$handler = $this->getUserHandler();
$roleDraft = $this->createRole();
$handler->publishRoleDraft($roleDraft->id);
$role = $handler->loadRole($roleDraft->id);
$handler->create($user = $this->getValidUser());
$handler->assignRole($user->id, $role->id, array('Subtree' => array('/1', '/1/2'), 'Foo' => array('Bar')));
$handler->unassignRole($user->id, $role->id);
$this->assertQueryResult(array(), $this->handler->createSelectQuery()->select('id', 'contentobject_id', 'role_id', 'limit_identifier', 'limit_value')->from('ezuser_role'), 'Expected no user policy associations.');
}