@Test
public void selectMultipleColumns() throws Exception {

  TableAdapter table = new InMemoryTable();
  List<CKeyValue> values = new ArrayList<CKeyValue>();
  values.add(new CKeyValue(new byte[] { 1 }));
  values.add(new CKeyValue(new byte[] { 2 }, new byte[] { 3 },
      new byte[] { 4 }));
  values.add(new CKeyValue(new byte[] { 3 }, new byte[] { 4 },
      new byte[] { 5 }, 0, new byte[] { 6 }));
  table.put(new Put(values));
  ResultFilter columns = new ResultFilter(table,
      new CColumn(new byte[] { 3 }), new CColumn(new byte[] { 4 }));
  assertCount(columns.getResultIterator(), 2);
  columns = new ResultFilter(table, new CColumn(new byte[] { 3 }));
  assertCount(columns.getResultIterator(), 1);
  columns = new ResultFilter(table, new CColumn(new byte[] { 3 },
      new byte[] { 4 }));
  assertCount(columns.getResultIterator(), 1);
  columns = new ResultFilter(table, new CColumn(new byte[] { 3 },
      new byte[] { 5 }));
  assertCount(columns.getResultIterator(), 0);
  columns = new ResultFilter(table, new CColumn(new byte[] { 4 }));
  assertCount(columns.getResultIterator(), 1);
}