title: Is there a way to get the generated HTML as a String from a UIComponent object?
body: <p>I have a <a href="http://docs.oracle.com/cd/E17802_01/j2ee/javaee/javaserverfaces/2.0/docs/api/javax/faces/component/UIComponent.html" rel="noreferrer">UIComponent</a> object. I would like to get the HTML code generated by this component at runtime so I can analyze it.</p>
  
  <p>Is there a way to achieve this?</p>
  
  <p>I am trying to use JsfUnit to create automated tests. I can get ahold of the UICompoment objects from within the test methods. However, I couldn't find a way to check the Html generated by the component.</p>