//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void visitOnlyLabeledNodes() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void VisitOnlyLabeledNodes()
        {
            LabelScanReader labelScanReader = mock(typeof(LabelScanReader));

            when(_labelScanStore.newReader()).thenReturn(labelScanReader);
            when(_nodeLabelRanges.maxCount()).thenReturn(1L);

            PrimitiveLongResourceIterator labeledNodesIterator = PrimitiveLongResourceCollections.iterator(null, 1, 2, 3, 4, 5, 6, 7, 8);

            when(_nodeStore.HighestPossibleIdInUse).thenReturn(200L);
            when(_nodeStore.HighId).thenReturn(20L);
            when(labelScanReader.NodesWithAnyOfLabels(new int[] { 2, 6 })).thenReturn(labeledNodesIterator);
            when(_nodeStore.openPageCursorForReading(anyLong())).thenReturn(mock(typeof(PageCursor)));

            MockLabelNodeCount(_countStore, 2);
            MockLabelNodeCount(_countStore, 6);

            DynamicIndexStoreView storeView = DynamicIndexStoreView();

            StoreScan <Exception> storeScan = storeView.VisitNodes(new int[] { 2, 6 }, _propertyKeyIdFilter, _propertyUpdateVisitor, _labelUpdateVisitor, false);

            storeScan.Run();

            Mockito.verify(_nodeStore, times(8)).getRecordByCursor(anyLong(), any(typeof(NodeRecord)), any(typeof(RecordLoad)), any(typeof(PageCursor)));
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldBeAbleToForceStoreScan() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldBeAbleToForceStoreScan()
        {
            when(_labelScanStore.newReader()).thenThrow(new Exception("Should not be used"));

            when(_nodeStore.HighestPossibleIdInUse).thenReturn(200L);
            when(_nodeStore.HighId).thenReturn(20L);
            when(_nodeStore.openPageCursorForReading(anyLong())).thenReturn(mock(typeof(PageCursor)));

            MockLabelNodeCount(_countStore, 2);
            MockLabelNodeCount(_countStore, 6);

            DynamicIndexStoreView storeView = DynamicIndexStoreView();

            StoreScan <Exception> storeScan = storeView.VisitNodes(new int[] { 2, 6 }, _propertyKeyIdFilter, _propertyUpdateVisitor, _labelUpdateVisitor, true);

            storeScan.Run();

            Mockito.verify(_nodeStore, times(1)).getRecordByCursor(anyLong(), any(typeof(NodeRecord)), any(typeof(RecordLoad)), any(typeof(PageCursor)));
            Mockito.verify(_nodeStore, times(200)).nextRecordByCursor(any(typeof(NodeRecord)), any(typeof(RecordLoad)), any(typeof(PageCursor)));
        }