@Test
public void testPropertyModel() throws Exception {
CompositeModel composite = _puller.pull(COMPLETE_XML, getClass());
// Test composite property
assertEquals(2, composite.getProperties().size());
PropertyResolver compositePr = composite.getModelConfiguration().getPropertyResolver();
assertEquals("composite.bar", compositePr.resolveProperty("composite.foo"));
assertEquals("composite." + System.getProperty("user.name"), composite.resolveProperty("composite.userName"));
// Test component property
ComponentModel component = composite.getComponents().get(0);
assertEquals(3, component.getProperties().size());
PropertyResolver componentPr = component.getModelConfiguration().getPropertyResolver();
assertEquals("composite.bar", componentPr.resolveProperty("composite.foo"));
assertEquals("component.bar", componentPr.resolveProperty("component.foo"));
assertEquals("component." + System.getProperty("user.name"), componentPr.resolveProperty("component.userName"));
}