public void testFeedDocs() throws Exception {
String connectorName = getName();
MockPusher pusher = new MockPusher();
DocumentAcceptorImpl documentAcceptor =
new DocumentAcceptorImpl(connectorName, pusher);
MockLister lister = new MockLister(10, 0);
lister.setDocumentAcceptor(documentAcceptor);
// With no inter-document delay, MockLister feeds all documents
// from its start() method, then returns when done.
lister.start();
assertEquals(10, pusher.getTotalDocs());
}