public void testRenderWithSelectorMatcher() throws Exception {
ElementMatcher matcher = new SelectorMatcher(Arrays.asList("#testId1", "#testId2"));
AjaxAction action = new SetAttributeAction(matcher, "class", "testClass");
String result = action.render();
System.out.println(result);
assertXpathEvaluatesTo("selector", "/set-attributes/context/matcher/@matchMode", result);
assertXpathEvaluatesTo("#testId1,#testId2", "/set-attributes/context/matcher/@contextNodeSelector", result);