CompositeMetaType nameAsDefaultCMT = (CompositeMetaType) nameAsDefaultType;
assertTrue(nameAsDefaultCMT.keySet().contains("domain"));
assertTrue(nameAsDefaultCMT.keySet().contains("keyPropertyList"));
assertEquals(SimpleMetaType.STRING, nameAsDefaultCMT.getType("domain"));
assertEquals(PropertiesMetaType.INSTANCE, nameAsDefaultCMT.getType("keyPropertyList"));
PropertiesMetaValue props = new PropertiesMetaValue();
props.put("key1", "value1");
props.put("key2", "value2");
props.put("key3", "value3");
String[] itemNames = {"domain", "keyPropertyList"};
MetaValue[] itemValues = {SimpleValueSupport.wrap("nameAsDefault-update"),
new PropertiesMetaValue(props)};
CompositeValueSupport update = new CompositeValueSupport(nameAsDefaultCMT, itemNames, itemValues);
nameAsDefault.setValue(update);
ObjectName nameAsDefaultON = bean.getNameAsDefault();
assertEquals("nameAsDefault-update:key1=value1,key2=value2,key3=value3", nameAsDefaultON.getCanonicalName());
}