{
MockControl moduleControl = newControl(Module.class);
Module module = (Module) moduleControl.getMock();
MockControl translatorControl = newControl(Translator.class);
Translator translator = (Translator) translatorControl.getMock();
MockControl paramsControl = newControl(ServiceImplementationFactoryParameters.class);
ServiceImplementationFactoryParameters params = (ServiceImplementationFactoryParameters) paramsControl
.getMock();
MockControl tmControl = newControl(TranslatorManager.class);
TranslatorManager tm = (TranslatorManager) tmControl.getMock();
BuilderPropertyFacet facet = new BuilderPropertyFacet();
facet.setTranslator("foo");
facet.setValue("bar");
params.getInvokingModule();
paramsControl.setDefaultReturnValue(module);
module.getService(TranslatorManager.class);
moduleControl.setReturnValue(tm);
tm.getTranslator("foo");
tmControl.setReturnValue(translator);
translator.translate(module, Object.class, "bar", null);
ApplicationRuntimeException exception = new ApplicationRuntimeException("");
translatorControl.setThrowable(exception);
replayControls();