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

            Statement stmt = new Statement();

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

            // storage-engine could be memory for which DeviceSize() returns zero.
            // This just tests that the expression was sent correctly
            // because all device sizes are effectively allowed.
            QueryPolicy policy = new QueryPolicy();

            policy.filterExp = Exp.Build(Exp.GE(Exp.DeviceSize(), Exp.Val(0)));

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

            try {
                int count = 0;

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