new CountingInvocationHandler(fetchFailingInvocationHandler, fetchAndUpdateIndexMethod);
final IndexUpdater fakeUpdater =
(IndexUpdater) Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]{IndexUpdater.class},
fetchCountingInvocationHandler);
final Scanner fakeScanner = new Scanner()
{
@Override
public ScanningResult scan(ScanningRequest request) {
scanInvocationCount++;
return null;