public void TestGetPrivateDataByPartialCompositeKey_withCompositeKey()
        {
            ChaincodeStub stub = PrepareStubAndMockHandler();

            CompositeKey key = new CompositeKey("KEY");

            stub.GetPrivateDataByPartialCompositeKey(TEST_COLLECTION, key).First();
            handler.Verify(a => a.GetStateByRangeAsync("myc", "txId", TEST_COLLECTION, key.ToString(), key.ToString() + "\udbff\udfff", null, token));

            key = new CompositeKey("");
            stub.GetPrivateDataByPartialCompositeKey(TEST_COLLECTION, key).First();
            handler.Verify(a => a.GetStateByRangeAsync("myc", "txId", TEST_COLLECTION, key.ToString(), key.ToString() + "\udbff\udfff", null, token));
        }
        public void TestGetPrivateDataByPartialCompositeKey_withAttributesWithSplittedParams()
        {
            ChaincodeStub stub = PrepareStubAndMockHandler();
            CompositeKey  cKey = new CompositeKey("KEY", "attr1", "attr2", "attr3");

            stub.GetPrivateDataByPartialCompositeKey(TEST_COLLECTION, "KEY", "attr1", "attr2", "attr3").First(); //GetFirst Otherwise no deal
            handler.Verify(a => a.GetStateByRangeAsync("myc", "txId", TEST_COLLECTION, cKey.ToString(), cKey.ToString() + "\udbff\udfff", null, token));
        }