public class MockJcrAdaptedToSpiTraversalTest extends TestCase {
public void testTraversal() throws RepositoryLoginException, RepositoryException {
MockRepositoryEventList mrel =
new MockRepositoryEventList("MockRepositoryEventLog1.txt");
MockRepository r = new MockRepository(mrel);
javax.jcr.Repository jcrRepo = new MockJcrRepository(r);
Connector repo = new JcrConnector(jcrRepo);
Session session = repo.login();
TraversalManager qtm = session.getTraversalManager();
QueryTraversalUtil.runTraversal(qtm, 2);