### Question:
PiisConsentService { public ResponseObject<Xs2aAuthorisationSubResources> getConsentInitiationAuthorisations(String consentId) { return piisConsentAuthorisationService.getConsentInitiationAuthorisations(consentId); }  ResponseObject<Xs2aConfirmationOfFundsResponse> createPiisConsentWithResponse(CreatePiisConsentRequest request, PsuIdData psuData, boolean explicitPreferred); ResponseObject<PiisConsent> getPiisConsentById(String consentId); ResponseObject<ConsentStatusResponse> getPiisConsentStatusById(String consentId); ResponseObject<Xs2aAuthorisationSubResources> getConsentInitiationAuthorisations(String consentId); ResponseObject<Xs2aScaStatusResponse> getConsentAuthorisationScaStatus(String consentId, String authorisationId); ResponseObject<Void> deleteAccountConsentsById(String consentId); ResponseObject<AuthorisationResponse> createPiisAuthorisation(PsuIdData psuData, String consentId, String password); ResponseObject<UpdateConsentPsuDataResponse> updateConsentPsuData(UpdateConsentPsuDataReq updatePsuData);  }### Answer:
@Test void getConsentInitiationAuthorisations_Success() { List<String> authorisations = Collections.singletonList("1b61a80e-e1f1-4752-bf71-a7af0955a47b"); Xs2aAuthorisationSubResources response = new Xs2aAuthorisationSubResources(authorisations); when(piisConsentAuthorisationService.getConsentInitiationAuthorisations(CONSENT_ID)) .thenReturn(ResponseObject.<Xs2aAuthorisationSubResources>builder().body(response).build()); ResponseObject<Xs2aAuthorisationSubResources> xs2aAuthorisationSubResourcesResponseObject = piisConsentService.getConsentInitiationAuthorisations(CONSENT_ID); assertEquals(response, xs2aAuthorisationSubResourcesResponseObject.getBody()); verify(piisConsentAuthorisationService, atLeastOnce()).getConsentInitiationAuthorisations(CONSENT_ID); }