obj.anObjectWithCustomReadObjectMethod = new CustomReadObjectMethod();
marshallAndAssertEquality(obj);
}
public void testMIMECacheEntryMarshalling() throws Exception {
MIMECacheEntry entry = new MIMECacheEntry("rm", new byte[] {1, 2, 3});
byte[] bytes = marshaller.objectToByteBuffer(entry);
MIMECacheEntry rEntry = (MIMECacheEntry) marshaller.objectFromByteBuffer(bytes);
assert Arrays.equals(rEntry.data, entry.data);
assert rEntry.contentType.equals(entry.contentType);
assert rEntry.lastModified == entry.lastModified;
}