assertXpathEvaluatesTo("Test Component 2", "/append-as-first-child/content/div[position()=2]", result);
assertXpathEvaluatesTo("testId", "/append-as-first-child/context/matcher/@contextNodeID", result);
}
public void testRenderWithListMatcher() throws Exception {
ElementMatcher matcher = new ListMatcher(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);