indexFactoryControl.setReturnValue(indexWriter, 1);
listener.beforeIndexingRequest(request1);
listenerControl.setVoidCallable(1);
indexWriter.addDocument(document1);
indexWriterControl.setMatcher(new AbstractMatcher() {
protected boolean argumentMatches(Object expected, Object actual) {
if( expected instanceof Document && actual instanceof Document ) {
return true;
} else {