when(extractor.extract(target)).thenReturn(ImmutableList.of(action));
when(graphProvider.get()).thenReturn(graph);
context =
new CrawlerContext(browser, config, sessionProvider, exitNotifier,
new MetricRegistry());
crawler =
new Crawler(context, config,
stateComparator,
candidateActionCache, formHandlerFactory, waitConditionChecker,
elementExtractor, graphProvider, plugins);