How do I unit test spring security @PreAuthorize custom expression

@PostMapping @ResponseStatus(HttpStatus.CREATED) @PreAuthorize(“@messageSecurityService.isAuthorized(#userAuthentication)”) public void sendMessage(@…