public function testSupportsFilters($filter, $transformations, $whitelisted)
{
$listener = new AccessToken($filter);
if (!$whitelisted) {
$this->setExpectedException('Imbo\\Exception\\RuntimeException', 'Missing access token', 400);
}
$this->event->expects($this->once())->method('getName')->will($this->returnValue('image.get'));
$this->request->expects($this->any())->method('getTransformations')->will($this->returnValue($transformations));
$listener->checkAccessToken($this->event);
}