assertSame(w2, inserter.getRootTag().getChildren().get(1));
}
@Test
public void testNestedWindow() {
IScriptElement child = null;
inserter.add(w1 = window("window1"), mock());
inserter.add(w2 = window("window2", "window1"), mock());
inserter.add(window("window2", "window1"), mock());
inserter.add(w3 = window("window1"), child = mock());
assertEquals(2, w2.getChildren().size());