// Add the testmapper
addComponentMapper(new TestMapper(getPersistenceFactory()));
// create
ManagedObject deploymentMO = getDeploymentMO(xmlName);
ManagedComponent component = createJMSComponent(deploymentMO);
// update property
component.getProperty("downCacheSize").setValue(SimpleValueSupport.wrap(123456));
ServiceDeployment deployment = parseJbossServiceXml(xmlName);
PersistenceRoot root = updateComponent(deploymentMO, component);
getPersistenceFactory().restorePersistenceRoot(root, deployment, null);
//
ManagedObject restored = getMOF().initManagedObject(deployment, null);
component = createJMSComponent(restored);
// assert
assertEquals(SimpleValueSupport.wrap(123456), component.getProperty("downCacheSize").getValue());