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

            byte[] value = new byte[] { 0x10, 0x20, 0x30 };
            handler.Setup((a) => a.GetStateAsync("myc", "txId", "", "key", token)).ReturnsAsync(ByteString.CopyFrom(value));
            CollectionAssert.AreEqual(stub.GetState("key"), value);
        }