MfaProviderEndpoints implements ApplicationEventPublisherAware { @RequestMapping(value = "{id}", method = PUT) public ResponseEntity<MfaProvider> updateMfaProvider() throws MfaProviderUpdateIsNotAllowed { throw new MfaProviderUpdateIsNotAllowed(); }  @Override void setApplicationEventPublisher(ApplicationEventPublisher publisher); @RequestMapping(method = POST) ResponseEntity<MfaProvider> createMfaProvider(@RequestBody MfaProvider body); @RequestMapping(value = "{id}", method = PUT) ResponseEntity<MfaProvider> updateMfaProvider(); @RequestMapping(method = GET) ResponseEntity<List<MfaProvider>> retrieveMfaProviders(); @RequestMapping(value = "{id}", method = GET) ResponseEntity<MfaProvider> retrieveMfaProviderById(@PathVariable String id); @RequestMapping(value = "{id}", method = DELETE) ResponseEntity<MfaProvider> deleteMfaProviderById(@PathVariable String id); @ExceptionHandler(InvalidMfaProviderException.class) ResponseEntity<InvalidMfaProviderException> handleInvalidMfaProviderException(InvalidMfaProviderException e); @ExceptionHandler(MfaAlreadyExistsException.class) ResponseEntity<InvalidMfaProviderException> handleInvalidMfaProviderException(MfaAlreadyExistsException e); @ExceptionHandler(EmptyResultDataAccessException.class) ResponseEntity<EmptyResultDataAccessException> handleEmptyResultDataAccessException(EmptyResultDataAccessException e); @ExceptionHandler(MfaProviderUpdateIsNotAllowed.class) ResponseEntity<MfaProviderUpdateIsNotAllowed> handleMfaUpdatingNameOfActiveProvider(MfaProviderUpdateIsNotAllowed e); MfaProviderProvisioning getMfaProviderProvisioning(); void setMfaProviderProvisioning(MfaProviderProvisioning mfaProviderProvisioning); void setMfaProviderValidator(MfaProviderValidator mfaProviderValidator);  }
@Test(expected = MfaProviderUpdateIsNotAllowed.class) public void testUpdateProvider() throws MfaProviderUpdateIsNotAllowed { endpoint.updateMfaProvider(); }