// Because alt text is now an object, provideAttributes will not
// automatically initialize it
attributes.setAltText(new LiteralTextAssetReference("altText"));
MethodInvoker invoker = new MethodInvoker() {
public void invoke() throws Exception {
protocol.writeAltText(attributes);
}
};
String expecting = getExpectedWriteAltTextResult();