}
return null;
}
};
ThreadLocale threadLocale = new ThreadLocaleImpl();
threadLocale.setLocale(_locale);
PagePool pool = new PagePoolImpl(null, loader, threadLocale);
pool.release(page1);
assertSame(page1, pool.checkout(PAGE_NAME));
// Now the list is empty, but not null.
assertSame(page2, pool.checkout(PAGE_NAME));