setNonDefaultMetadataValues($meta); $meta->getter = 'getFoo'; $meta->setter = 'setFoo'; $meta->readOnly = true; $restoredMeta = unserialize(serialize($meta)); $this->assertEquals($meta, $restoredMeta); } }