MockControl registryControl = newControl(RegistryInfrastructure.class);
RegistryInfrastructure registry = (RegistryInfrastructure) registryControl.getMock();
MockControl symbolExpanderControl = newControl(SymbolExpander.class);
SymbolExpander symbolExpander = (SymbolExpander) symbolExpanderControl.getMock();
SchemaProcessorImpl p = new SchemaProcessorImpl(null, schema);
Location location1 = newLocation();
ElementImpl element1 = new ElementImpl();
element1.setElementName("cartoon");
element1.addAttribute(new AttributeImpl("name", "flintstone"));
element1.setLocation(location1);
List elements1 = Collections.singletonList(element1);
Location location2 = newLocation();
ElementImpl element2 = new ElementImpl();
element2.setElementName("cartoon");
element2.addAttribute(new AttributeImpl("name", "flintstone"));
element2.setLocation(location2);
List elements2 = Collections.singletonList(element2);
MockControl tControl1 = newControl(Translator.class);
Translator t1 = (Translator) tControl1.getMock();
MockControl tmControl = newControl(TranslatorManager.class);
TranslatorManager tm = (TranslatorManager) tmControl.getMock();
m1.getRegistry();
control1.setReturnValue(registry);
registry.getModule("module");
registryControl.setReturnValue(m1);
m2.getRegistry();
control2.setReturnValue(registry);
registry.getModule("module");
registryControl.setReturnValue(m2);
m1.resolveType("StringHolderImpl");
control1.setReturnValue(StringHolderImpl.class);
m1.getService(SymbolExpander.class);
control1.setReturnValue(symbolExpander);
symbolExpander.expandSymbols("flintstone", location1);
symbolExpanderControl.setReturnValue("flintstone");
m1.getService(TranslatorManager.class);
control1.setReturnValue(tm);
symbolExpander.expandSymbols("flintstone", location1);
symbolExpanderControl.setReturnValue("flintstone");
String flintstoneKeyModule1 = "m1.flintstone";
t1.translate(m1, String.class, "flintstone", element1.getLocation());
tControl1.setReturnValue(flintstoneKeyModule1);
t1.translate(m1, Object.class, "flintstone", element1.getLocation());
tControl1.setReturnValue(flintstoneKeyModule1);
m2.resolveType("StringHolderImpl");
control2.setReturnValue(StringHolderImpl.class);
symbolExpander.expandSymbols("flintstone", location2);
symbolExpanderControl.setReturnValue("flintstone");
symbolExpander.expandSymbols("flintstone", location2);
symbolExpanderControl.setReturnValue("flintstone");
tm.getTranslator("qualified-id");
tmControl.setReturnValue(t1);