byte[] ba = baos.toByteArray();
baos.close();
ByteArrayInputStream bais = new ByteArrayInputStream(ba);
ObjectInputStream ois = new ObjectInputStream(bais);
Feature newf = m.unmarshall(ois);
bais.close();
assertTrue(f.equals(newf));
}
/** Same as testMarshall, but uses complex representation of DefaultFeature.