Why not using `$request->query` instead of parsing the query string yourself?

The test for this class is here: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Security/Tests/Http/Firewall/SwitchUserListenerTest.php#L16

I'm not sure if this is a behaviour we want. If it is, you should add a test.