@Test
public void createEmptySourceRemovesFromPool() throws PoolResourceException {

    // given
    ItemSourcePool mockedPool = mock(ItemSourcePool.class);
    PooledItemSourceFactory pooledItemSourceFactory = new PooledItemSourceFactory(mockedPool);
    // when
    pooledItemSourceFactory.createEmptySource();
    // then
    verify(mockedPool).getPooled();
}