public void testGetDocumentList_timeout() throws RepositoryException {
// Delay one second in the queries, and set a traversal time limit
// of one second, so that the loop in getDocumentList will timeout.
MockTraversalManager mtm = new MockTraversalManager(1);
SimpleTraversalContext traversalContext = new SimpleTraversalContext();
traversalContext.setTraversalTimeLimitSeconds(1);
mtm.setTraversalContext(traversalContext);
String checkpoint = "{index:0,uuid:['one','another'],"
+ "lastModified=['2010-04-01 00:01:00','2010-10-27 22:55:03']}";
DocumentList documentList = mtm.resumeTraversal(checkpoint);