f.writeExternal(oos);
ByteArrayInputStream bais =
new ByteArrayInputStream(baos.toByteArray());
ObjectInputStream ois = new ObjectInputStream(bais);
DataFlavor read = new DataFlavor();
read.readExternal(ois);
assertEquals(f.getPrimaryType(), read.getPrimaryType());
assertEquals(f.getSubType(), read.getSubType());
assertEquals(f.getRepresentationClass(),
read.getRepresentationClass());
assertEquals(f.getHumanPresentableName(),