title: org.mockito.exceptions.verification.WantedButNotInvoked:
body: <pre><code>Mockito.when(
                  useCaseService.
                  addPurposeForModelDeployment(
                  Mockito.any(UseCase.class)))
          .thenReturn(registrationDetailsForModelData);
  
          MvcResult result = mockMvc.perform(post(URI)
                  .accept(MediaType.APPLICATION_JSON)
                  .content(inputInJson)
                  .contentType(MediaType.APPLICATION_JSON))
                  .andReturn();
  
          MockHttpServletResponse response = result.getResponse();
  
          String outputInJson = response.getContentAsString();
          logger.info("response="+outputInJson);
  
          assertThat(outputInJson).isNotEqualTo(inputInJson);
          assertEquals(HttpStatus.OK.value(), response.getStatus());
          Mockito.verify(useCaseService).addPurposeForModelDeployment(registrationDetailsForModelData);   
  </code></pre>