    @Test
    void identifyConsent_bearerTokenNull() {

        // Given
        when(referencePolicy.fromRequest(any(), any(), any(), anyBoolean())).thenReturn(getConsentReference());
        when(cmsPsuAisClient.getConsentIdByRedirectId(any(), any())).thenReturn(ResponseEntity.ok(getCmsAisConsentResponse(AisConsentRequestType.DEDICATED_ACCOUNTS, IBAN_DE)));
        when(consentMapper.toTo(any())).thenReturn(getAisConsentTO());

        // When
        ConsentWorkflow workflow = redirectConsentService.identifyConsent(ENCRYPTED_CONSENT_ID, AUTHORIZATION_ID, false, "consentCookieString", null);

        // Then
        assertNotNull(workflow);
        assertEquals(workflow.getConsentReference(), getConsentReference());
    }