Added Certificate support to MockAuthenticationFactory