*/
public void testNoFollowAddedToTrackBacks() throws Exception {
ContentDecoratorContext context = new ContentDecoratorContext();
context.setView(ContentDecoratorContext.DETAIL_VIEW);
TrackBack trackBack1 = blogEntry.createTrackBack("title", "excerpt", "url", "blogName", "127.0.0.1");
blogEntry.addTrackBack(trackBack1);
TrackBack trackBack2 = blogEntry.createTrackBack("title", "excerpt", "url", "blogName", "127.0.0.1");
blogEntry.addTrackBack(trackBack2);
trackBack1.setExcerpt("<p>Here is an excerpt.</p>");
trackBack2.setExcerpt("<p>Here is an excerpt again.</p>");
decorator.decorate(context, trackBack1);
decorator.decorate(context, trackBack2);
assertEquals("<p>Here is an excerpt.</p>", trackBack1.getExcerpt());
assertEquals("<p>Here is an excerpt again.</p>", trackBack2.getExcerpt());
trackBack1.setExcerpt("<p>Here is a <a href=\"http://www.google.com\">a link</a>.</p>");
trackBack2.setExcerpt("<p>Here is a <a href=http://www.google.com>a link</a> again.</p>");
decorator.decorate(context, trackBack1);
decorator.decorate(context, trackBack2);
assertEquals("<p>Here is a <a href=\"http://www.google.com\" rel=\"nofollow\">a link</a>.</p>", trackBack1.getExcerpt());
assertEquals("<p>Here is a <a href=http://www.google.com rel=\"nofollow\">a link</a> again.</p>", trackBack2.getExcerpt());
}