}
return null;
}
};
ThreadLocale threadLocale = new ThreadLocaleImpl();
PagePool pool = new PagePoolImpl(null, loader, threadLocale);
threadLocale.setLocale(Locale.GERMAN);
Page page = pool.checkout("p1");
assertSame(page, germanPage);
pool.release(page);
threadLocale.setLocale(Locale.FRENCH);
page = pool.checkout("p1");
assertSame(page, frenchPage);
pool.release(page);
}