We have a custom authentication manager which uses a static factory method to spin up an instance of a repository (because we couldn't work out how to inject one) which does some security look ups from a database.
As you can imagine it's a pretty key part of our security infrastructure and I was wondering how others have approached unit testing the components to make sure they are working as per the design.
Thanks
John