//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldLookUpTheIndexByIndexName() throws org.neo4j.internal.kernel.api.exceptions.ProcedureException, org.neo4j.internal.kernel.api.exceptions.schema.IndexNotFoundKernelException //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldLookUpTheIndexByIndexName() { when(_tokenRead.nodeLabel(anyString())).thenReturn(_descriptor.LabelId); when(_tokenRead.propertyKey(anyString())).thenReturn(_descriptor.PropertyId); when(_schemaRead.indexGetForName("my index")).thenReturn(_anyIndex); when(_schemaRead.indexGetState(any(typeof(IndexReference)))).thenReturn(ONLINE); _procedure.awaitIndexByName("`my index`", TIMEOUT, _timeUnit); verify(_schemaRead).indexGetForName("my index"); }