@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);
}