### Question:
CmsPsuPiisController implements CmsPsuPiisApi { @Override public ResponseEntity<Boolean> revokeConsent(String consentId, String psuId, String psuIdType, String psuCorporateId, String psuCorporateIdType, String instanceId) { PsuIdData psuIdData = new PsuIdData(psuId, psuIdType, psuCorporateId, psuCorporateIdType, null); return new ResponseEntity<>(cmsPsuPiisService.revokeConsent(psuIdData, consentId, instanceId), HttpStatus.OK); }  @Override ResponseEntity<CmsPiisConsent> getConsent(String consentId, 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> revokeConsent(String consentId, String psuId, String psuIdType, String psuCorporateId, String psuCorporateIdType, String instanceId);  }### Answer:
@Test void revokeConsent_withTrueServiceResponse_shouldReturnTrue() throws Exception { when(cmsPsuPiisService.revokeConsent(psuIdData, CONSENT_ID, INSTANCE_ID)).thenReturn(true); mockMvc.perform(put("/psu-api/v1/piis/consents/{consent-id}/revoke-consent", CONSENT_ID) .headers(INSTANCE_ID_HEADERS) .headers(PSU_HEADERS)) .andExpect(status().isOk()) .andExpect(content().string("true")); }
@Test void revokeConsent_withFalseServiceResponse_shouldReturnFalse() throws Exception { when(cmsPsuPiisService.revokeConsent(psuIdData, CONSENT_ID, INSTANCE_ID)).thenReturn(false); mockMvc.perform(put("/psu-api/v1/piis/consents/{consent-id}/revoke-consent", CONSENT_ID) .headers(INSTANCE_ID_HEADERS) .headers(PSU_HEADERS)) .andExpect(status().isOk()) .andExpect(content().string("false")); }