public void ApplyPropertyValuesWithIncompleteDefinition() { DefaultListableObjectFactory factory = new DefaultListableObjectFactory(); MutablePropertyValues properties = new MutablePropertyValues(); properties.Add("age", "99"); factory.RegisterObjectDefinition("test", new RootObjectDefinition(null, properties)); TestObject obj = new TestObject(); Assert.AreEqual(0, obj.Age); factory.ApplyObjectPropertyValues(obj, "test"); Assert.AreEqual(99, obj.Age, "Property values were not applied to the existing instance."); }