public void testRenderWithSelectorMatcher() throws Exception {
ElementMatcher matcher = new SelectorMatcher(Arrays.asList("#testId1", "#testId2"));
AjaxAction action = new AppendAsFirstContentAction(matcher, Arrays.asList(new Component[]{new TaggedText("Test Component 1", TaggedText.Tag.DIV), new TaggedText("Test Component 2", TaggedText.Tag.DIV)}));
String result = action.render();
System.out.println(result);
assertXpathEvaluatesTo("Test Component 1", "/append-as-first-child/content/div[position()=1]", result);
assertXpathEvaluatesTo("Test Component 2", "/append-as-first-child/content/div[position()=2]", result);