root = doc.getDefaultRootElement();
line = root.getElement(1);
viewFactory = new ViewFactory() {
public View create(final Element element) {
viewsCreatedElements.add(element);
return new ChildView(element);
}
};
// We create anonymous subclass of View where we override
// update methods to assert parameters passed
view = new ChangeView(root);