componentAttributes.put("onclick", "alert(click)");
Set<ClientBehaviorHint> emptyHintsSet = EnumSet.noneOf(ClientBehaviorHint.class);
Set<ClientBehaviorHint> submittingHintsSet = EnumSet.of(ClientBehaviorHint.SUBMITTING);
ClientBehavior keypressBehavior = createClientBehavior("keypress", emptyHintsSet);
ClientBehavior actionBehavior1 = createClientBehavior("action1", emptyHintsSet);
ClientBehavior actionBehavior2 = createClientBehavior("action2", submittingHintsSet);
ClientBehavior actionBehavior3 = createClientBehavior("action3", emptyHintsSet);
ClientBehavior contextmenuBehavior = createClientBehavior("contextmenu", emptyHintsSet);
behaviorsMap.put("keypress", Arrays.asList(keypressBehavior));
behaviorsMap.put("action", Arrays.asList(actionBehavior1, actionBehavior2, actionBehavior3));
behaviorsMap.put("contextmenu", Arrays.asList(contextmenuBehavior));