How do I gain confidence in code that generates HTML, such as tag libraries or view templates? Well, it depends on what I’m trying to do. Am I learning how an existing tag library works? If so, then I create a bare project, install the tag library, use it to generate some HTML, then use something like HTMLUnit1 (any HTML parser will do) to check the results. This way, I can explore all the features that the tag library has without mixing those tests up with the tests for my project’s core...