public function testCreateSessionBadCredentials()
{
$request = $this->createHttpRequest('POST', '/api/ezp/v2/user/sessions', 'SessionInput+json', 'Session+json');
$this->setSessionInput($request, 'badpassword');
$response = $this->sendHttpRequest($request);
self::assertHttpResponseCodeEquals($response, 401);
}