public void GivenAGenerateMethod_WhenAnyRoleIsGiven_ThenACapabilityTokenIsGenerated()
        {
            var mockCredentials = new Mock<ICredentials>();
            mockCredentials.Setup(c => c.AccountSID).Returns("account-sid");
            mockCredentials.Setup(c => c.AuthToken).Returns("auth-token");
            mockCredentials.Setup(c => c.TwiMLApplicationSID).Returns("twiml-app-sid");

            var token = new Capability(mockCredentials.Object);

            Assert.That(token, Is.Not.Null);
        }
 // GET: Token/Generate
 public JsonResult Generate(string page)
 {
     var token = new Capability(_credentials).Generate(InferRole(page));
     return Json(new {token}, JsonRequestBehavior.AllowGet);
 }