### Question:
DkbAccountInformationService extends BaseAccountInformationService { Map<String, String> addBearerHeader(Map<String, String> map) { map.put("Authorization", "Bearer " + accessService.retrieveToken()); return map; } DkbAccountInformationService(Aspsp aspsp,
                                        AccessTokenService accessService,
                                        HttpClient httpClient,
                                        LinksRewriter linksRewriter); @Override Response<ConsentsResponse201> createConsent(RequestHeaders requestHeaders,
                                                       RequestParams requestParams,
                                                       Consents body); @Override Response<StartScaprocessResponse> startConsentAuthorisation(String consentId,
                                                                       RequestHeaders requestHeaders,
                                                                       RequestParams requestParams); @Override Response<StartScaprocessResponse> startConsentAuthorisation(String consentId,
                                                                       RequestHeaders requestHeaders,
                                                                       RequestParams requestParams,
                                                                       UpdatePsuAuthentication updatePsuAuthentication);  }### Answer:
@Test void addBearerHeader() { when(accessService.retrieveToken()).thenReturn("token"); Map<String, String> headers = service.addBearerHeader(new HashMap<>()); verify(accessService, times(1)).retrieveToken(); assertThat(headers) .hasSize(1) .containsKey("Authorization"); assertThat(headers.get("Authorization")).isNotNull(); }