@Test
public void testRemoveKey() {
final Object key = "key";
final int maxItemsPerKey = 44;
final MultiMap mm = client.getMultiMap(randomString());
Set expeted = new TreeSet();
for ( int i=0; i< maxItemsPerKey; i++ ){
mm.put(key, i);
expeted.add(i);
}
Set resultSet = new TreeSet( mm.remove(key) );
assertEquals(expeted, resultSet);
assertEquals(0, mm.size());
}