hashtable.put("three", "3");
hashtable.put("four", "4");
oosm.writeObject(hashtable);
ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
ObjectInputStreamMicro oism = new ObjectInputStreamMicro(bais);
Object obj = oism.readObject();
assertTrue("hashtable is not of type 'Hashtable', it is " + obj.getClass().getName(), obj instanceof Hashtable);
Hashtable table = (Hashtable)obj;
assertEquals("wrong number of entries in hashtable", hashtable.size(), table.size());
assertHashtableContent("one", hashtable, table);
assertHashtableContent("two", hashtable, table);