assert Util.bytesToString(a.get("name")).equals("Bela");
}
public void testRemove() throws Exception {
ExtendedUUID uuid=ExtendedUUID.randomUUID("A");
byte[] val=Util.objectToByteBuffer("tmp");
for(int i=1; i <= 10; i++)
uuid.put(String.valueOf(i), val);
System.out.println("uuid = " + uuid);
byte[] tmp=uuid.remove(String.valueOf(5));
assert tmp != null && Arrays.equals(tmp, val);
tmp=uuid.get(String.valueOf(5));
assert tmp == null;
tmp=uuid.get(String.valueOf(7));
assert tmp != null && Arrays.equals(tmp, val);
uuid.remove(String.valueOf(7));
assert uuid.keyExists(String.valueOf(8));
}