### Question:
AuthorisationController implements AuthorisationApi { @Override public ResponseEntity<CreateAuthorisationResponse> createConsentAuthorisation(AuthorisationType authorisationType, String parentId, CreateAuthorisationRequest authorisationRequest) { CmsResponse<CreateAuthorisationResponse> cmsResponse = authorisationServiceEncrypted.createAuthorisation(new AuthorisationParentHolder(authorisationType, parentId), authorisationRequest); if (cmsResponse.hasError()) { return new ResponseEntity<>(HttpStatus.NOT_FOUND); } return new ResponseEntity<>(cmsResponse.getPayload(), HttpStatus.CREATED); }  @Override ResponseEntity<CreateAuthorisationResponse> createConsentAuthorisation(AuthorisationType authorisationType, String parentId, CreateAuthorisationRequest authorisationRequest); @Override ResponseEntity<Authorisation> getAuthorisation(String authorisationId); @Override ResponseEntity<Void> updateAuthorisation(String authorisationId, UpdateAuthorisationRequest authorisationRequest); @Override ResponseEntity<Void> updateAuthorisationStatus(String authorisationId, String scaStatus); @Override ResponseEntity<ScaStatus> getAuthorisationScaStatus(AuthorisationType authorisationType, String parentId, String authorisationId); @Override ResponseEntity<List<String>> getAuthorisationsByParentId(AuthorisationType authorisationType, String parentId); @Override ResponseEntity<Boolean> isAuthenticationMethodDecoupled(String authorisationId, String authenticationMethodId); @Override ResponseEntity<Void> saveAuthenticationMethods(String authorisationId, List<CmsScaMethod> methods); @Override ResponseEntity<Boolean> updateScaApproach(String authorisationId, ScaApproach scaApproach); @Override ResponseEntity<AuthorisationScaApproachResponse> getAuthorisationScaApproach(String authorisationId);  }### Answer:
@Test void createConsentAuthorisation() throws Exception { CreateAuthorisationRequest request = jsonReader.getObjectFromFile("json/controller/create-authorisation-request.json", CreateAuthorisationRequest.class); when(authorisationServiceEncrypted.createAuthorisation(new AuthorisationParentHolder(AuthorisationType.CONSENT, PARENT_ID), request)) .thenReturn(CmsResponse.<CreateAuthorisationResponse>builder() .payload(new CreateAuthorisationResponse(AUTHORISATION_ID, null, null, null)).build()); mockMvc.perform(MockMvcRequestBuilders.post(UriComponentsBuilder.fromPath("/api/v1/CONSENT/5c2d5564-367f-4e03-a621-6bef76fa4208/authorisations") .buildAndExpand(AuthorisationType.CONSENT.name().toLowerCase(), AUTHORISATION_ID) .toUriString()) .contentType(MediaType.APPLICATION_JSON_VALUE) .content(jsonReader.getStringFromFile("json/controller/create-authorisation-request.json"))) .andExpect(status().is(HttpStatus.CREATED.value())); }