behaviorsMap.put("keypress", Arrays.asList(keypressBehavior));
behaviorsMap.put("action", Arrays.asList(actionBehavior1, actionBehavior2, actionBehavior3));
behaviorsMap.put("contextmenu", Arrays.asList(contextmenuBehavior));
ClientBehaviorHolder behaviorHolder = createMockClientBehaviorHolder();
UIComponent component = (UIComponent) behaviorHolder;
responseWriter.writeAttribute(eq("onkeypress"),
eq("return jsf.util.chain(this, event, 'alert(keypress)','prompt(keypress)')"), EasyMock.<String>isNull());
responseWriter.writeAttribute(eq("onclick"),
eq("return jsf.util.chain(this, event, 'alert(click)','prompt(action1)','prompt(action2)')"),