@Test
public void shouldProduceSameOrderWithOneBatchInMemory() {

    System.out.println("Number of rows: " + countRows(allNodes()));
    int numRowsInMemory = 4;
    int numRowsInBatch = 4;
    NodeSequence batches = allNodes(1.0f, numRowsInBatch);
    RestartableSequence restartable = new RestartableSequence(workspaceName(), batches, bufferMgr, cache, numRowsInMemory);
    assertSameOrder(restartable, allNodes(), false);
    restartable.restart();
    assertSameOrder(restartable, allNodes(), true);
}