//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void scanStoreStartWithoutExistentIndex() throws Throwable
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ScanStoreStartWithoutExistentIndex()
        {
            LabelScanStore labelScanStore = LabelScanStore;
            GroupingRecoveryCleanupWorkCollector workCollector = GroupingRecoveryCleanupWorkCollector;

            labelScanStore.Shutdown();
            workCollector.Shutdown();

            DeleteLabelScanStoreFiles(DbRule.databaseLayout());

            workCollector.Init();
            labelScanStore.Init();
            workCollector.Start();
            labelScanStore.Start();

            CheckLabelScanStoreAccessible(labelScanStore);
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void scanStoreRecreateCorruptedIndexOnStartup() throws Throwable
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ScanStoreRecreateCorruptedIndexOnStartup()
        {
            LabelScanStore labelScanStore = LabelScanStore;
            GroupingRecoveryCleanupWorkCollector workCollector = GroupingRecoveryCleanupWorkCollector;

            CreateTestNode();
            long[] labels = ReadNodesForLabel(labelScanStore);
            assertEquals("Label scan store see 1 label for node", 1, labels.Length);
            labelScanStore.Force(Org.Neo4j.Io.pagecache.IOLimiter_Fields.Unlimited);
            labelScanStore.Shutdown();
            workCollector.Shutdown();

            CorruptLabelScanStoreFiles(DbRule.databaseLayout());

            workCollector.Init();
            labelScanStore.Init();
            workCollector.Start();
            labelScanStore.Start();

            long[] rebuildLabels = ReadNodesForLabel(labelScanStore);
            assertArrayEquals("Store should rebuild corrupted index", labels, rebuildLabels);
        }