page.setPageMarkup("<a wicket:id='a'></a><f wicket:id='fragment'></f><b wicket:id='b'></b>"
+ "<wicket:fragment wicket:id='f'><r wicket:id='r'></r><s wicket:id='s'></s></wicket:fragment>");
Fragment fragment = new Fragment("fragment", "f", page);
fragment.queue(r, s);
page.queue(a, b, fragment);
assertThat(page, hasPath(new Path(a)));
assertThat(page, hasPath(new Path(b)));
assertThat(page, hasPath(new Path(fragment, r)));