Mock Custom User
Building a Mock object for custom UserDetails implementations in Spring Security
![spring security guard](https://ericrybarczyk.com/blog/2021/04/img/liam-tucker-cVMaxt672ss-unsplash__security.jpg)
While working through the Spring Security aspects of my SpringBikeClinic.com project, I implemented SecurityUser, a custom UserDetails object which was composed with a User database entity. For unit testing my @Controller code, I wanted a clean way to provide a mock instance of my custom user type.