@SuppressWarnings("unchecked")
ValueChangeEvent<String> event = EasyMock.createMock(ValueChangeEvent.class);
EasyMock.expect(event.getValue()).andReturn(fragment);
HistoryItem item = createEmptyHistoryItem();
EasyMock.expect(historyCache.getHistoryItem("1")).andReturn(item);
Capture<ExplorerContext> contextCapture = new Capture<ExplorerContext>();
delegate.setContext(EasyMock.capture(contextCapture));
EasyMock.expectLastCall();