This class is **not** a test class. It is an implementation of the token, which could be used.

FOSOAuthServerBundle is redefining its own implementation with exactly the same code in it insead of reusing it, but this is something I would change if I were refactoring the bundle (I won't refactor it as I'm not using it myself)