@Test
void transformedDOMContent()
{

    String htmlInput = "<img src=\"http://host.com/a.gif?a=foo&b=bar\" />";
    Document document = this.cleaner.clean(new StringReader(htmlInput));
    String textContent =
        document.getElementsByTagName("img").item(0).getAttributes().getNamedItem("src").getTextContent();
    assertEquals("http://host.com/a.gif?a=foo&b=bar", textContent);
    htmlInput = "<img src=\"http://host.com/a.gif?a=foo&amp;b=bar\" />";
    document = this.cleaner.clean(new StringReader(htmlInput));
    textContent =
        document.getElementsByTagName("img").item(0).getAttributes().getNamedItem("src").getTextContent();
    assertEquals("http://host.com/a.gif?a=foo&b=bar", textContent);
}