@Test
public void testGetHarvester() throws IOException {

    final List<IElementDef> emptyList = Collections.emptyList();
    expect(mockConfigFactory.create(mockConfigSource)).andReturn(mockConfig);
    expect(mockFactory.create(mockConfig)).
        andReturn(mockHarvester);
    mockConfig.reload();
    expectLastCall();
    expect(mockConfig.getElementDef()).andReturn(mockElementDef);
    expect(mockElementDef.getElementDefs()).andReturn(emptyList);
    mockLoadCallback.onSuccess(emptyList);
    expectLastCall();
    EasyMockUnitils.replay();
    final Harvester harvester = harvest.getHarvester(mockConfigSource,
            mockLoadCallback);
    assertNotNull(harvester);
    assertSame(mockHarvester, harvester);
}