ElementImpl element = new ElementImpl();
element.setElementName("myelement");
element.setContent("${flintstone}");
PushContentRule rule = new PushContentRule();
SchemaProcessor mockProcessor = (SchemaProcessor) control.getMock();
mockProcessor.getContentTranslator();
control.setReturnValue(new NullTranslator());
mockProcessor.getContributingModule();
MockControl moduleControl = newControl(Module.class);
Module mockModule = (Module) moduleControl.getMock();
control.setReturnValue(mockModule);
MockControl symbolExpanderControl = newControl(SymbolExpander.class);
SymbolExpander symbolExpander = (SymbolExpander) symbolExpanderControl.getMock();
mockProcessor.getSymbolExpander();
control.setReturnValue(symbolExpander);
symbolExpander.expandSymbols("${flintstone}", element.getLocation());
symbolExpanderControl.setReturnValue("FLINTSTONE");
mockProcessor.getContributingModule();
control.setReturnValue(mockModule);
mockProcessor.push("FLINTSTONE");
mockProcessor.pop();
control.setReturnValue("FLINTSTONE");
replayControls();
rule.begin(mockProcessor, element);
rule.end(mockProcessor, element);
verifyControls();
}