public void QueryBinExists()
        {
            int begin = 1;
            int end   = 10;

            Statement stmt = new Statement();

            stmt.SetNamespace(args.ns);
            stmt.SetSetName(setName);
            stmt.SetFilter(Filter.Range(binName, begin, end));

            QueryPolicy policy = new QueryPolicy();

            policy.filterExp = Exp.Build(Exp.BinExists("bin2"));

            RecordSet rs = client.Query(policy, stmt);

            try {
                int count = 0;

                while (rs.Next())
                {
                    count++;
                }
                Assert.AreEqual(10, count);
            }
            finally {
                rs.Close();
            }
        }