assertEquals("AltText", element.getAttributeValue("alt"));
}
public void testDoImageSuffix() throws ProtocolException {
privateSetUp();
ImageAttributes ia = new ImageAttributes();
ia.setStyles(StylesBuilder.getDeprecatedStyles());
Pane outPane = new Pane(null);
outPane.setName("MyPane");
outPane.setDestinationArea(null);
ia.setPane(outPane);
ia.setAltText("AltText");
ia.setSrc("http://www.images.com/test/test.jpg");
ia.setAssetURLSuffix("?name=fred");
ia.setLocalSrc(false);
protocol.writeImage(ia);
// Check the image tag and attributes
Element nullElement = buffer.popElement();
Element element = (Element) nullElement.getHead();