assertEquals("property1_1.value", SimpleValueSupport.wrap("value1-orig"), value1_1);
}
public void testSubclassCopy()
{
JmsDestinationTemplateInfo info = new JmsDestinationTemplateInfo("testSubclassCopy", "testSubclassCopy", "queue");
ManagedProperty jndiName = info.getProperties().get("JNDIName");
jndiName.setValue(SimpleValueSupport.wrap("testSubclassCopy"));
JmsDestinationTemplateInfo info2 = info.copy();
jndiName.setValue(SimpleValueSupport.wrap("testSubclassCopy-updated"));
ManagedProperty jndiName2 = info2.getProperties().get("JNDIName");
MetaValue value = jndiName.getValue();
MetaValue value2 = jndiName2.getValue();
assertTrue(info.getProperties() != info2.getProperties());
assertTrue(jndiName != jndiName2);
assertTrue(jndiName.getFields() != jndiName2.getFields());
assertTrue(value != value2);
assertEquals("jndiName", SimpleValueSupport.wrap("testSubclassCopy-updated"), jndiName.getValue());
assertEquals("jndiName2", SimpleValueSupport.wrap("testSubclassCopy"), value2);