public void CanEvaluateChallenge()
      {
         ISaslClient client = new ExternalSaslClient(AUTHID, new Hashtable(), this);

         Assert.IsFalse(client.IsComplete);
         byte[] response = client.EvaluateChallenge(new byte[0]);
         Assert.AreEqual(AUTHID, Encoding.UTF8.GetString(response));
         
         Assert.IsTrue(client.IsComplete);
      }
      public void HasInitialResponseReturnsTrue()
      {
         ISaslClient client = new ExternalSaslClient(AUTHID, new Hashtable(), this);

         Assert.IsTrue(client.HasInitialResponse);
      }
      public void ReturnsRightMechanismName()
      {
         ISaslClient client = new ExternalSaslClient(AUTHID, new Hashtable(), this);

         Assert.AreEqual("EXTERNAL", client.MechanismName);
      }