public void TestMessagesAlerts()
        {
            // Arrange
            var context = new Mock <HttpContextBase>();

            var identity = new GenericIdentity("test");

            identity.AddClaim(new Claim("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier", "f752739e-8d58-4bf5-a140-fc225cc5ebdb")); //test user
            var principal = new GenericPrincipal(identity, new[] { "user" });

            context.Setup(s => s.User).Returns(principal);

            MessagesController controller = new MessagesController(new EventService());

            controller.ControllerContext = new ControllerContext(context.Object, new RouteData(), controller);

            // Act
            ViewResult result = controller.Alerts() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }