@Test
public void shouldSortSequenceWithoutDuplicatesOnHeapBuffer() {

    // print(true);
    boolean useHeap = true;
    boolean pack = false;
    boolean allowDups = false;
    ExtractFromRow extractor = RowExtractors.extractPath(0, cache, types);
    SortingSequence sorted = new SortingSequence(workspaceName(), allNodes(), extractor, bufferMgr, cache, pack, useHeap,
                                                 allowDups, NullOrder.NULLS_LAST);
    assertThat(sorted.getRowCount(), is(countRows(allNodes())));
    assertSorted(sorted, extractor);
}