// Needed to allow the call to getTextFromReference within doImage to work
context = new TestMarinerPageContext();
protocol.setMarinerPageContext(context);
ImageAttributes attrs = new ImageAttributes();
attrs.setStyles(StylesBuilder.getInitialValueStyles());
attrs.setSrc("http://www.volantis.com/my_image.jpg");
attrs.setLocalSrc(true);
attrs.setAltText("my_alt_text");
attrs.setWidth("10");
attrs.setHeight("20");
attrs.setBorder("5");
protocol.doImage(buffer, attrs);
String expected = "<img alt=\"my_alt_text\" border=\"5\" " +
"height=\"20\" src=\"http://www.volantis.com/my_image.jpg\" " +