{
jsfConfiguration = new SharedFacesConfiguration();
}
TestConfig testConfig = getTestJavaClass().getAnnotation(TestConfig.class);
boolean enableJNDI = (testConfig != null) ? testConfig.enableJNDI() : true;
if (enableJNDI)
{
System.setProperty(Context.INITIAL_CONTEXT_FACTORY, MockInitialContextFactory.class.getName());
jndiContext = new DefaultContext();
MockInitialContextFactory.setCurrentContext(jndiContext);