function it_gets_credentials(Request $request, ParameterBagInterface $headersBag)
{
$headersBag->has('Authorization')->shouldBeCalled()->willReturn(true);
$headersBag->get('Authorization')->shouldBeCalled()->willReturn('Bearer bearer-token');
$request->headers = $headersBag;
$this->getCredentials($request)->shouldReturn('bearer-token');
}