public void testEmptyObjectStoreMock() throws Exception {
IObjectStore os = createNiceMock(IObjectStore.class);
IObjectSet objectSet = createNiceMock(IObjectSet.class);
IObjectFactory factory = createMock(IObjectFactory.class);
ISearch search = createMock(ISearch.class);
expect(factory.getSearch(os)).andReturn(search);
expect(search.execute(isA(String.class))).andReturn(objectSet).times(2);
replay(os, factory, search, objectSet);
FileDocumentTraverser traverser =
new FileDocumentTraverser(factory, os, connec);