Added Certificate support to MockAuthenticationFactory

Agree, That would be cleaner.