public void testRenderWithSelectorMatcher() throws Exception {
ElementMatcher matcher = new SelectorMatcher(Arrays.asList("#testId1", "#testId2"));
AjaxAction action = new InsertContentAfterAction(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", "/insert-after/content/div[position()=1]", result);
assertXpathEvaluatesTo("Test Component 2", "/insert-after/content/div[position()=2]", result);