/** @throws Exception */ @Test public void testReentrant() throws Exception { final PageAccessSynchronizer sync = new PageAccessSynchronizer(Duration.seconds(5)); sync.lockPage(0); sync.lockPage(0); }
@Override public void run() { sync.lockPage(5); }