### Question:
CmsAspspStopListController implements CmsAspspStopListApi { @Override public ResponseEntity<Boolean> blockTpp(String tppAuthorisationNumber, String instanceId, Long lockPeriod) { Duration lockPeriodDuration = lockPeriod != null ? Duration.ofMillis(lockPeriod) : null; boolean isBlocked = cmsAspspTppService.blockTpp(tppAuthorisationNumber, instanceId, lockPeriodDuration); return new ResponseEntity<>(isBlocked, HttpStatus.OK); }  @Override ResponseEntity<TppStopListRecord> getTppStopListRecord(String tppAuthorisationNumber, String instanceId); @Override ResponseEntity<Boolean> blockTpp(String tppAuthorisationNumber, String instanceId, Long lockPeriod); @Override ResponseEntity<Boolean> unblockTpp(String tppAuthorisationNumber, String instanceId);  }### Answer:
@Test void blockTpp() throws Exception { Duration lockPeriodDuration = Duration.ofMillis(lockPeriod); when(cmsAspspTppService.blockTpp(tppAuthorisationNumber, INSTANCE_ID, lockPeriodDuration)) .thenReturn(true); mockMvc.perform(put(BLOCK_TPP_AUTH_NUMBER) .contentType(MediaType.APPLICATION_JSON_VALUE) .headers(httpHeaders)) .andExpect(status().is(HttpStatus.OK.value())) .andExpect(content().string(TRUE)); verify(cmsAspspTppService, times(1)).blockTpp(tppAuthorisationNumber, INSTANCE_ID, lockPeriodDuration); }