def METHOD_NAME(self):
    request_validator = mock.MagicMock()
    request_validator.validate_bearer_token = self._mocked_validate_bearer_token
    for fake_header in self.fake_bearer_headers:
        request = Request("/", headers=fake_header)
        result = BearerToken(request_validator=request_validator).estimate_type(
            request
        )
        if (
            fake_header["Authorization"].count(" ") == 2
            and fake_header["Authorization"].split()[0] == "Bearer"
        ):
            # If we're dealing with the header containing 2 spaces, it will be recognized
            # as a Bearer valid header, the token itself will be invalid by the way.
            self.assertEqual(result, 9)
        else:
            self.assertEqual(result, 0)