BatchMutation { public BatchMutation<K> addCounterInsertion(K key, List<String> columnFamilies, CounterColumn counterColumn) { Mutation mutation = new Mutation(); mutation.setColumn_or_supercolumn(new ColumnOrSuperColumn().setCounter_column(counterColumn)); 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 testAddCounterInsertion() { CounterColumn cc1 = new CounterColumn(StringSerializer.get().toByteBuffer("c_name"), 222); batchMutate.addCounterInsertion("key1", columnFamilies, cc1); Map<ByteBuffer, Map<String, List<Mutation>>> mutationMap = batchMutate.getMutationMap(); assertEquals(1, mutationMap.get(StringSerializer.get().toByteBuffer("key1")).size()); CounterColumn cc2 = new CounterColumn(StringSerializer.get().toByteBuffer("c_name2"), 44); batchMutate.addCounterInsertion("key1", columnFamilies, cc2); assertEquals(2, mutationMap.get(StringSerializer.get().toByteBuffer("key1")).get("Standard1").size()); }