Expect... expectations ) {
Map<ByteArrayId, Integer> result = new HashMap<ByteArrayId, Integer>();
while (it.hasNext()) {
Entry<Key, Value> entry = it.next();
ByteArrayId rowID = new ByteArrayId(
entry.getKey().getRow().getBytes());
result.put(
rowID,
new Integer(
1 + (result.containsKey(rowID) ? result.get(
rowID).intValue() : 0)));
}
int expectedCount = 0;
for (Expect e : expectations) {
ByteArrayId rowID = new ByteArrayId(
e.id);
expectedCount += (e.count > 0 ? 1 : 0);
assertEquals(
new Text(
e.id).toString(),