//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldCreateTokenId() public virtual void ShouldCreateTokenId() { // given TokenRegistry registry = new TokenRegistry("Label"); ReplicatedTokenStateMachine stateMachine = new ReplicatedTokenStateMachine(registry, NullLogProvider.Instance, EmptyVersionContextSupplier.EMPTY); stateMachine.InstallCommitProcess(mock(typeof(TransactionCommitProcess)), -1); // when sbyte[] commandBytes = commandBytes(TokenCommands(_expectedTokenId)); stateMachine.ApplyCommand(new ReplicatedTokenRequest(LABEL, "Person", commandBytes), 1, r => { }); // then assertEquals(_expectedTokenId, ( int )registry.GetId("Person")); }