DAOFactory.setConfiguredFactory(new MockDAOFactory());
PebbleContext.getInstance().getConfiguration().setUrl("http://www.yourdomain.com/blog/");
BlogManager.getInstance().setMultiBlog(true);
PebbleContext.getInstance().getConfiguration().setSecurityRealm(new MockSecurityRealm());
// and set up some blogs
File blogDirectory1 = new File(TEST_BLOG_LOCATION, "blogs/blog1");
blogDirectory1.mkdir();
blog1 = new Blog(blogDirectory1.getAbsolutePath());