### Question:
ScrapingHarvester implements Harvester { @Override @Scraping public DynamicScopeContext execute(final ContextInitCallback callback) { final WebScraper scraper = scraperProvider.get(); final DynamicScopeContext context = contextFactory.create(config); callback.onSuccess(context); scraper.execute(context); return context; } @Inject  ScrapingHarvester(final Provider<WebScraper> scraperProvider,
            final ContextFactory contextFactory,
            @Assisted final Config config); @Override @Scraping DynamicScopeContext execute(final ContextInitCallback callback);  }### Answer:
@Test public void testExecute() throws IOException { expect(mockScraperProvider.get()).andReturn(mockScraper); expect(mockContextFactory.create(mockConfig)).andReturn(mockContext); mockInitCallback.onSuccess(mockContext); expectLastCall(); mockScraper.execute(mockContext); expectLastCall(); EasyMockUnitils.replay(); final Harvester harvester = new ScrapingHarvester(mockScraperProvider, mockContextFactory, mockConfig); final DynamicScopeContext context = harvester.execute(mockInitCallback); assertNotNull(context); assertSame(mockContext, context); }