public void RetweetYuppieMessages() {
          
            var agent = new RestAgent();
            agent.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/xhtml+xml")); 
            MicroblogSemanticsProvider.RegisterSemantics(agent.SemanticsRegistry);

            agent.NavigateTo(new Link() { Target = new Uri("http://127.0.0.1:8080/") });


            agent.SetBasicCredentials("darrel", "foome");
            var content = agent.CurrentContent;

            var messagePostForm = content.GetLink<MessagesSearchForm>();
            messagePostForm.Search = "yuppie";
            agent.NavigateTo(messagePostForm);

            var shareFormLinks = agent.CurrentContent.GetLinks<MessageShareForm>();
            foreach (var messageShareForm in shareFormLinks) {
                agent.NavigateTo(messageShareForm);    
            }
            

            Assert.AreEqual(HttpStatusCode.OK, agent.CurrentStatusCode);

        }
        public void PostMessage() {
            var agent = new RestAgent();
            agent.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/xhtml+xml")); 
            MicroblogSemanticsProvider.RegisterSemantics(agent.SemanticsRegistry);

            agent.NavigateTo(new Link() { Target = new Uri("http://127.0.0.1:8080/") });
            
            agent.SetBasicCredentials("darrel","foome");
            var content = agent.CurrentContent;

            var messagePostForm = content.GetLink<MessagePostForm>();
            messagePostForm.Message = "Here's a message";
            agent.NavigateTo(messagePostForm);
            
            var finalcontent = agent.CurrentContent;

            Assert.AreEqual(HttpStatusCode.OK, agent.CurrentStatusCode);

        }