//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: @Before public void setUp()
        public virtual void SetUp()
        {
            when(_labelScanStore.newReader()).thenReturn(_labelScanReader);
            when(_neoStores.NodeStore).thenReturn(_nodeStore);
        }