//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldThrowAnExceptionIfTheLabelDoesntExist() public virtual void ShouldThrowAnExceptionIfTheLabelDoesntExist() { when(_tokenRead.nodeLabel("NonExistentLabel")).thenReturn(-1); try { _procedure.awaitIndexByPattern(":NonExistentLabel(prop)", TIMEOUT, _timeUnit); fail("Expected an exception"); } catch (ProcedureException e) { assertThat(e.Status(), @is(Org.Neo4j.Kernel.Api.Exceptions.Status_Schema.LabelAccessFailed)); } }