public void TestGetStringState()
        {
            ChaincodeStub stub  = new ChaincodeStub("myc", "txId", handler.Object, new List <ByteString>(), null);
            string        value = "TEST";

            handler.Setup((a) => a.GetStateAsync("myc", "txId", "", "key", token)).ReturnsAsync(ByteString.CopyFromUtf8(value));
            Assert.AreEqual(stub.GetStringState("key"), value);
        }