protocolMock.expects.popHeadBuffer().any();
protocolMock.expects.getDOMFactory().returns(
DOMFactory.getDefaultInstance()).any();
final PageHead pageHead = new PageHead();
pageHead.setOutputBufferFactory(
new DOMOutputBufferFactory(DOMFactory.getDefaultInstance()));
protocolMock.expects.getPageHead().returns(pageHead).any();
protocolMock.fuzzy.createScriptElement(
mockFactory.expectsInstanceOf(ScriptAttributes.class)).does(
new MethodAction(){
public Object perform(final MethodActionEvent event)