private Schedulable MockCall(string id)
        {
            Schedulable          mockCall = Org.Mockito.Mockito.Mock <Schedulable>();
            UserGroupInformation ugi      = Org.Mockito.Mockito.Mock <UserGroupInformation>();

            Org.Mockito.Mockito.When(ugi.GetUserName()).ThenReturn(id);
            Org.Mockito.Mockito.When(mockCall.GetUserGroupInformation()).ThenReturn(ugi);
            return(mockCall);
        }
        public virtual string MakeIdentity(Schedulable obj)
        {
            UserGroupInformation ugi = obj.GetUserGroupInformation();

            if (ugi == null)
            {
                return(null);
            }
            return(ugi.GetUserName());
        }