PersistedManagedObject moElement = restore(mo);
assertNotNull(moElement);
assertNotNull(moElement.getProperties());
// Recreate MO
ManagedObject restored = update(new SimpleTableMetaData(), moElement);
// Assert
ManagedProperty p = restored.getProperty("map");
assertTrue(p.getValue() instanceof TableValue);
assertTrue(p.getMetaType() instanceof TableMetaType);
TableValue table = (TableValue) p.getValue();
assertRow(table, 1, "one");
assertRow(table, 2, "two");
assertRow(table, 3, "three");
SimpleTableMetaData metaData = (SimpleTableMetaData) restored.getAttachment();
assertTrue(metaData.getMap().equals(initMap()));
}