*/
@Test
public void testErrorMessage()
{
UIViewRoot root = new UIViewRoot();
MockFacesContext12 facesContext = new MockFacesContext12();
IMocksControl mocksControl = EasyMock.createControl();
Application application = mocksControl.createMock(Application.class);
ViewHandler viewHandler = mocksControl.createMock(ViewHandler.class);
ELContext elContext = mocksControl.createMock(ELContext.class);
ExpressionFactory expressionFactory = mocksControl.createMock(ExpressionFactory.class);
ValueExpression valueExpression = mocksControl.createMock(ValueExpression.class);
facesContext.setApplication(application);
facesContext.setViewRoot(root);
facesContext.setELContext(elContext);
expect(application.getViewHandler()).andReturn(viewHandler);
expect(viewHandler.calculateLocale(facesContext)).andReturn(Locale.ENGLISH);
expect(application.getMessageBundle()).andReturn("javax.faces.Messages");
expect(application.getExpressionFactory()).andReturn(expressionFactory);