BatchMutation { public BatchMutation<K> addDeletion(K key, List<String> columnFamilies, Deletion deletion) { Mutation mutation = new Mutation(); mutation.setDeletion(deletion); 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 testAddDeletion() { Deletion deletion = new Deletion().setTimestamp(System.currentTimeMillis()); SlicePredicate slicePredicate = new SlicePredicate(); slicePredicate.addToColumn_names(StringSerializer.get().toByteBuffer("c_name")); deletion.setPredicate(slicePredicate); batchMutate.addDeletion("key1", columnFamilies, deletion); assertEquals(1,batchMutate.getMutationMap().get(StringSerializer.get().toByteBuffer("key1")).size()); deletion = new Deletion().setTimestamp(System.currentTimeMillis()); slicePredicate = new SlicePredicate(); slicePredicate.addToColumn_names(StringSerializer.get().toByteBuffer("c_name2")); deletion.setPredicate(slicePredicate); batchMutate.addDeletion("key1", columnFamilies, deletion); assertEquals(2,batchMutate.getMutationMap().get(StringSerializer.get().toByteBuffer("key1")).get("Standard1").size()); }