Add tests for code from security changes

Add tests for SerializationFactory, utils, SaslTransportPlugin
ThriftClient, ThriftServer, AuthUtils and ReqContext.

Removes error log message in SerializationFactory before throwing
RuntimeException.

Introduces dev dependency on Mockito for certain tests.
Merge remote-tracking branch 'd2r/d2r-security-related-tests'