SortResultIterator implements Iterator<Iterator<? extends ScoredDocument<?>>> { @Override public void remove() { throw new UnsupportedOperationException( "Removal is not supported"); } SortResultIterator(
            @NotNull
            final Query query,
            @NotNull
            final Iterator<QueryContext> dbs); @Override boolean hasNext(); @NotNull @Override Iterator<? extends ScoredDocument<?>> next(); @Override void remove();  }
@Test(expected = UnsupportedOperationException.class) public void unsupportedRemove() { new SortResultIterator( QueryBuilder.select(), Collections.<QueryContext>emptyIterator()).remove(); }