rs.close();
}
@Test
public void testMultiPut() throws Exception {
HTableInterface hTable = getHTable();
List<byte[]> rows = getRandomRows(2);
Put put1 = new Put(rows.get(0));
Put put2 = new Put(rows.get(1));
put1.add(cf, rows.get(0), rows.get(0));
put2.add(cf, rows.get(1), rows.get(1));
hTable.put(ImmutableList.of(put1, put2));
ResultScanner rs = hTable.getScanner(cf);
Result[] results = rs.next(2);
Assert.assertArrayEquals(rows.get(0), results[0].getRow());
Assert.assertArrayEquals(rows.get(1), results[1].getRow());
assertMetricsUpdated(OpType.MULTIPUT, OpType.RESULTSCANNER_NEXTARRAY,