List<ColumnUpdate> updates = m.getUpdates();
assertEquals(2, updates.size());
assertEquals("r1", new String(m.getRow()));
ColumnUpdate cu = updates.get(0);
assertEquals("cf1", new String(cu.getColumnFamily()));
assertEquals("cq1", new String(cu.getColumnQualifier()));
assertEquals("", new String(cu.getColumnVisibility()));
assertFalse(cu.hasTimestamp());
cu.setSystemTimestamp(42l);
assertEquals(42l, cu.getTimestamp());
cu = updates.get(1);
assertEquals("cf2", new String(cu.getColumnFamily()));
assertEquals("cq2", new String(cu.getColumnQualifier()));
assertEquals("", new String(cu.getColumnVisibility()));
assertTrue(cu.hasTimestamp());
assertEquals(56, cu.getTimestamp());
m = cloneMutation(m);
assertEquals("r1", new String(m.getRow()));
updates = m.getUpdates();
assertEquals(2, updates.size());
cu = updates.get(0);
assertEquals("cf1", new String(cu.getColumnFamily()));
assertEquals("cq1", new String(cu.getColumnQualifier()));
assertEquals("", new String(cu.getColumnVisibility()));
assertFalse(cu.hasTimestamp());
assertEquals(42l, cu.getTimestamp());
cu = updates.get(1);
assertEquals("cf2", new String(cu.getColumnFamily()));
assertEquals("cq2", new String(cu.getColumnQualifier()));
assertEquals("", new String(cu.getColumnVisibility()));
assertTrue(cu.hasTimestamp());
assertEquals(56, cu.getTimestamp());
}