Add tests for code from security changes

Add some basic 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.