### Question:
CmsAspspPiisController implements CmsAspspPiisApi { @Override public ResponseEntity<Boolean> terminateConsent(String consentId, String instanceId) { return new ResponseEntity<>(cmsAspspPiisService.terminateConsent(consentId, instanceId), HttpStatus.OK); }  @Override ResponseEntity<CreatePiisConsentResponse> createConsent(CreatePiisConsentRequest request, String psuId,
                                                                   String psuIdType, String psuCorporateId, String psuCorporateIdType,
                                                                   String instanceId); @Override ResponseEntity<List<CmsPiisConsent>> getConsentsForPsu(String psuId, String psuIdType, String psuCorporateId, String psuCorporateIdType, String instanceId); @Override ResponseEntity<Boolean> terminateConsent(String consentId, String instanceId);  }### Answer:
@Test void terminateConsent_ReturnTrue() throws Exception { when(cmsAspspPiisService.terminateConsent(CONSENT_ID, INSTANCE_ID)) .thenReturn(true); mockMvc.perform(delete(DELETE_PIIS_CONSENT_URL) .contentType(MediaType.APPLICATION_JSON_VALUE) .headers(httpHeaders)) .andExpect(status().is(HttpStatus.OK.value())) .andExpect(content().string(TRUE)); verify(cmsAspspPiisService, times(1)).terminateConsent(CONSENT_ID, INSTANCE_ID); }