public void testDontReapDeadBrowserWithLock() throws Exception {
final CapturedBrowsers browsers = new CapturedBrowsers(new BrowserIdStrategy(new MockTime(0)));
final MockTime time = new MockTime(1);
final SlaveBrowser browserOne =
new SlaveBrowser(time, "1", new BrowserInfo(), 20, null, CaptureHandler.QUIRKS,
RunnerType.CLIENT, BrowserState.CAPTURED, new Instant(0));
browsers.addSlave(browserOne);
final SlaveBrowser browserTwo =
new SlaveBrowser(time, "2", new BrowserInfo(), 20, null, CaptureHandler.QUIRKS,
RunnerType.CLIENT, BrowserState.CAPTURED, new Instant(0));
browsers.addSlave(browserTwo);
final BrowserReaper browserReaper = new BrowserReaper(browsers);
time.add(40);
browserOne.heartBeat();
browserTwo.tryLock("locked");