type.setType("Less Than Equals");
ValueType valueType = new ValueType();
valueType.setClassName("java.lang.Long");
RowAlias alias = new RowAlias();
alias.setAlias("alias");
alias.setValueType(valueType);
alias.setLength(8);
RowAliasFilter rowFilter = new RowAliasFilter();
rowFilter.setFilterType(type);
rowFilter.setValue("123");
rowFilter.setRowAlias(alias);
LongComparator expectedComp = new LongComparator(123l, 0, 8);
RowFilter expectedFilter = new RowFilter(CompareOp.LESS_OR_EQUAL,
expectedComp);
Mapping mapping = new Mapping();
Map<String, RowAlias> rowAliases = new TreeMap<String, RowAlias>();
rowAliases.put(alias.getAlias(), alias);
mapping.setRowAlias(rowAliases);
RowFilter filterReturned = HBaseFilterFactory.getRowFilter(rowFilter,
mapping);
LongComparator returnedComparator = (LongComparator) filterReturned