protected AbstractCookieStore bdbCookieStore() throws IOException {
if (bdbCookieStore == null) {
bdbCookieStore = new BdbCookieStore();
ConfigPath basePath = new ConfigPath("testBase",
getTmpDir().getAbsolutePath());
ConfigFile cookiesSaveFile = new ConfigFile("cookiesSaveFile", "cookies.txt");
cookiesSaveFile.setBase(basePath);
bdbCookieStore.setCookiesSaveFile(cookiesSaveFile);
bdbCookieStore.setBdbModule(bdb());
bdbCookieStore.start();
}
return bdbCookieStore;