em.addRule(rule);
em.addRule(new InvokeParentRule("addElement"));
SchemaImpl schema = new SchemaImpl();
schema.addElementModel(em);
SchemaProcessorImpl p = new SchemaProcessorImpl(null, null, schema);
ElementImpl element = new ElementImpl();
element.setElementName("fred");