public void Test__GetUserInfo()
        {
            // Arrange
            var userinfo = _fixture.Create <UserInfo>();

            var(username, password, role, authenticated) =
                (_fixture.Create <string>(), _fixture.Create <string>(), _fixture.Create <string>(), _fixture.Create <KeyValuePair <string, string> >());

            var utility = new SessionUtility(username, password, role, authenticated);

            var session = new MockSession(new Dictionary <string, string>
            {
                { username, userinfo.Username },
                { password, userinfo.Password },
                { role, userinfo.Role },
            });

            // Act
            var result = (UserInfo)utility.GetUserInfo(session);

            // Assert
            Assert.Equal(userinfo, result, new UserInfoEqualityComparer());
        }