BatchMutation { public BatchMutation<K> addInsertion(K key, List<String> columnFamilies, Column column) { Mutation mutation = new Mutation(); mutation.setColumn_or_supercolumn(new ColumnOrSuperColumn().setColumn(column)); addMutation(key, columnFamilies, mutation); return this; } BatchMutation(Serializer<K> serializer, BatchSizeHint sizeHint);  BatchMutation(Serializer<K> serializer); private  BatchMutation(Serializer<K> serializer, Map<ByteBuffer,Map<String,List<Mutation>>> mutationMap, BatchSizeHint sizeHint); BatchMutation<K> addInsertion(K key, List<String> columnFamilies,
      Column column); BatchMutation<K> addSuperInsertion(K key, List<String> columnFamilies,
      SuperColumn superColumn); BatchMutation<K> addCounterInsertion(K key, List<String> columnFamilies, CounterColumn counterColumn); BatchMutation<K> addSuperCounterInsertion(K key, List<String> columnFamilies, 
      CounterSuperColumn counterSuperColumn); BatchMutation<K> addDeletion(K key, List<String> columnFamilies, Deletion deletion); Map<ByteBuffer,Map<String,List<Mutation>>> getMutationMap(); BatchMutation<K> makeCopy(); boolean isEmpty(); int getSize();  }
@Test public void testAddInsertion() { Column column = new Column(StringSerializer.get().toByteBuffer("c_name")); column.setValue(StringSerializer.get().toByteBuffer("c_val")); column.setTimestamp(System.currentTimeMillis()); batchMutate.addInsertion("key1", columnFamilies, column); Map<ByteBuffer, Map<String, List<Mutation>>> mutationMap = batchMutate.getMutationMap(); assertEquals(1, mutationMap.get(StringSerializer.get().toByteBuffer("key1")).size()); Column column2 = new Column(StringSerializer.get().toByteBuffer("c_name2")); column2.setValue(StringSerializer.get().toByteBuffer("c_val2")); column2.setTimestamp(System.currentTimeMillis()); batchMutate.addInsertion("key1",columnFamilies, column2); assertEquals(2, mutationMap.get(StringSerializer.get().toByteBuffer("key1")).get("Standard1").size()); }