javax.faces.application.Application application = applicationFactory.getApplication();
assertEquals("messageBundleA", application.getMessageBundle());
LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
assertEquals(TestLifecycleFactory.class, lifecycleFactory.getClass());
LifecycleFactory lifecycleFactoryDelegate = ((TestLifecycleFactory) lifecycleFactory).getDelegate();
assertNotNull(lifecycleFactoryDelegate);
assertEquals(LifecycleFactoryImpl.class, lifecycleFactoryDelegate.getClass());
// view handler
ViewHandler viewHandler = application.getViewHandler();
assertEquals(TestViewHandlerA.class, viewHandler.getClass());