private void testRangeSliceCommandWrite() throws IOException
{
ByteBuffer startCol = ByteBuffer.wrap("Start".getBytes());
ByteBuffer stopCol = ByteBuffer.wrap("Stop".getBytes());
ByteBuffer emptyCol = ByteBuffer.wrap("".getBytes());
SlicePredicate namesPred = new SlicePredicate();
namesPred.column_names = Statics.NamedCols;
SliceRange emptySliceRange = new SliceRange(emptyCol, emptyCol, false, 100);
SliceRange nonEmptySliceRange = new SliceRange(startCol, stopCol, true, 100);
SlicePredicate emptyRangePred = new SlicePredicate();
emptyRangePred.slice_range = emptySliceRange;
SlicePredicate nonEmptyRangePred = new SlicePredicate();
nonEmptyRangePred.slice_range = nonEmptySliceRange;
IPartitioner part = StorageService.getPartitioner();
AbstractBounds bounds = new Range(part.getRandomToken(), part.getRandomToken());
Message namesCmd = new RangeSliceCommand(Statics.KS, "Standard1", null, namesPred, bounds, 100).getMessage();