### Question:
AuthorisationMapper { public Object mapToConsentCreateOrUpdateAuthorisationResponse(ResponseObject<AuthorisationResponse> responseObject) { AuthorisationResponse body = responseObject.getBody(); if (Objects.isNull(body)) { return null; } if (body instanceof CreateConsentAuthorizationResponse) { return authorisationModelMapper.mapToStartScaProcessResponse((CreateConsentAuthorizationResponse) body); } else if (body instanceof UpdateConsentPsuDataResponse) { UpdatePsuAuthenticationResponse resp = mapToConsentUpdatePsuAuthenticationResponse((UpdateConsentPsuDataResponse) body); resp.setAuthorisationId(body.getAuthorisationId()); return resp; } else { return null; } }  Authorisations mapToAuthorisations(Xs2aAuthorisationSubResources xs2AAuthorisationSubResources); Object mapToPisCreateOrUpdateAuthorisationResponse(ResponseObject responseObject); Object mapToConsentCreateOrUpdateAuthorisationResponse(ResponseObject<AuthorisationResponse> responseObject); @NotNull ScaStatusResponse mapToScaStatusResponse(@NotNull Xs2aScaStatusResponse xs2aScaStatusResponse); UpdatePsuAuthenticationResponse mapToPisUpdatePsuAuthenticationResponse(Xs2aUpdatePisCommonPaymentPsuDataResponse response); UpdatePsuAuthenticationResponse mapToConsentUpdatePsuAuthenticationResponse(UpdateConsentPsuDataResponse response); Xs2aCreatePisAuthorisationRequest mapToXs2aCreatePisAuthorisationRequest(PsuIdData psuData, String paymentId, PaymentType paymentService, String paymentProduct, Map body); String mapToPasswordFromBody(Map body);  }### Answer:
@Test void mapToAisCreateOrUpdateAuthorisationResponse_for_CreateConsentAuthorizationResponse() { CreateConsentAuthorizationResponse createConsentAuthorizationResponse = jsonReader.getObjectFromFile("json/service/mapper/authorisation-mapper/AuthorisationMapper-CreateConsentAuthorisationResponse.json", CreateConsentAuthorizationResponse.class); StartScaprocessResponse expected = jsonReader.getObjectFromFile("json/service/mapper/authorisation-mapper/AuthorisationMapper-start-scaprocess-response-expected.json", StartScaprocessResponse.class); when(authorisationModelMapper.mapToStartScaProcessResponse(createConsentAuthorizationResponse)) .thenReturn(expected); ResponseObject<AuthorisationResponse> responseObject = ResponseObject.<AuthorisationResponse>builder() .body(createConsentAuthorizationResponse) .build(); StartScaprocessResponse actualStartScaProcessResponse = (StartScaprocessResponse) mapper.mapToConsentCreateOrUpdateAuthorisationResponse(responseObject); assertEquals(expected, actualStartScaProcessResponse); verify(authorisationModelMapper).mapToStartScaProcessResponse(createConsentAuthorizationResponse); }