If the `RequestAuthenticationFactory` is `final` and set in the constructor, it will never be `null`, in which case, I don't think this test is necessary.