private <T extends Page> void executeCombinedTestPre1_5(final Class<T> pageClass,
final String filename) throws Exception
{
// Default Config: parent first header render strategy
log.error("=== PARENT first header render strategy ===");
WicketTester tester = new WicketTester();
tester.startPage(pageClass);
tester.assertRenderedPage(pageClass);
tester.assertResultPage(getClass(), filename);
// child first header render strategy
log.error("=== CHILD first header render strategy ===");
System.setProperty("Wicket_HeaderRenderStrategy",
ChildFirstHeaderRenderStrategy.class.getName());
tester = new WicketTester();
tester.startPage(pageClass);
tester.assertRenderedPage(pageClass);
tester.assertResultPage(getClass(), filename + "_2");
System.setProperty("Wicket_HeaderRenderStrategy", "");
}