protected Context getRoot() throws Exception
{
final DefaultNameParser parser = new DefaultNameParser();
final DefaultNamespace namespace = new DefaultNamespace( parser );
namespace.addObjectFactory( new TestObjectFactory() );
namespace.addStateFactory( new TestStateFactory() );
return new MemoryContext( namespace, null, null );
}