SharepointClientContext spContext = getSharePointClientContext();
SharepointClient spClient =
new SharepointClient(spContext.getClientFactory(), spContext);
GlobalState globalState = new GlobalState(
spContext.getClientFactory(),"temp",FeedType.CONTENT_FEED);
WebState dummyWebState = globalState.makeWebState(
spContext, "http://sharepoint.example.com/defaul.aspx");
ListState list1 = new ListState("{GUID_LIST_1}", "List1", "GenericList",
Calendar.getInstance(), "List",
"http://sharepoint.example.com/List1/AllItems.aspx", dummyWebState);
dummyWebState.AddOrUpdateListStateInWebState(
list1, Util.calendarToJoda(Calendar.getInstance()));
ListState list2 = new ListState("{GUID_LIST_2}", "List2", "GenericList",
Calendar.getInstance(), "List",
"http://sharepoint.example.com/List2/AllItems.aspx", dummyWebState);
dummyWebState.AddOrUpdateListStateInWebState(
list2, Util.calendarToJoda(Calendar.getInstance()));
List<SPDocument> list1CrawlQueue = new ArrayList<SPDocument>();
SPDocument correctDocument = new SPDocument(
"LIST_ITEM_1", "http://sharepoint.example.com/List1/DispForm.aspx?ID=1",